mirror of
https://github.com/makeplane/plane.git
synced 2026-07-13 22:09:12 +02:00
26 lines
822 B
TypeScript
26 lines
822 B
TypeScript
|
|
import { FileText, LayoutGrid } from "lucide-react";
|
||
|
|
// types
|
||
|
|
import { IWorkspaceDefaultSearchResult, IWorkspaceSearchResult } from "@plane/types";
|
||
|
|
|
||
|
|
export const pagesAppCommandGroups: {
|
||
|
|
[key: string]: {
|
||
|
|
icon: JSX.Element;
|
||
|
|
itemName: (item: any) => React.ReactNode;
|
||
|
|
path: (item: any) => string;
|
||
|
|
title: string;
|
||
|
|
};
|
||
|
|
} = {
|
||
|
|
page: {
|
||
|
|
icon: <FileText className="size-3" />,
|
||
|
|
itemName: (page: IWorkspaceDefaultSearchResult) => page?.name,
|
||
|
|
path: (page: IWorkspaceDefaultSearchResult) => `/${page?.workspace__slug}/pages/${page?.id}`,
|
||
|
|
title: "Pages",
|
||
|
|
},
|
||
|
|
workspace: {
|
||
|
|
icon: <LayoutGrid className="size-3" />,
|
||
|
|
itemName: (workspace: IWorkspaceSearchResult) => workspace?.name,
|
||
|
|
path: (workspace: IWorkspaceSearchResult) => `/${workspace?.slug}/pages`,
|
||
|
|
title: "Workspaces",
|
||
|
|
},
|
||
|
|
};
|