Files
paseo/plugin-examples/sidebar-views/index.client.tsx
T
Mohamed Boudra 62bd21214b feat(plugin): add sidebar view examples and ref actions
Keep sidebar layout and gestures inside the plugin while routing entity handles to their owning hosts. Examples cover empty projects, pinned workspaces, task sections, nested agents and device-local label folders.
2026-11-06 09:22:19 +01:00

17 lines
794 B
TypeScript

import type { PluginClientContext } from "@getpaseo/plugin/client";
import { Workspaces } from "./client/workspaces";
import { Agents } from "./client/agents";
import { Nested } from "./client/nested";
import { Labels } from "./client/labels";
export default function contribute(client: PluginClientContext) {
const cleanups = [
client.addSidebarView({ id: "workspaces", title: "Example workspaces", Component: Workspaces }),
client.addSidebarView({ id: "agents", title: "Example agents", Component: Agents }),
client.addSidebarView({ id: "nested", title: "Example nested agents", Component: Nested }),
client.addSidebarView({ id: "labels", title: "Example label folders", Component: Labels }),
];
return () => {
for (const cleanup of cleanups) void cleanup();
};
}