UNPKG

studiocms

Version:

Astro Native CMS for AstroDB. Built from the ground up by the Astro community.

72 lines (71 loc) 2.67 kB
/** * Retrieves the dashboard pages for the plugins. * * @returns An object containing `userPages` and `adminPages`. */ export declare function getPluginDashboardPages(): { userPages: ({ title: Record<string, string>; description: string; route: string; pageBodyComponent: string; slug: string; components: { PageBodyComponent: (_props: any) => any; PageActionsComponent?: ((_props: any) => any) | undefined; InnerSidebarComponent?: ((_props: any) => any) | undefined; }; sidebar: "single"; icon?: string | undefined; requiredPermissions?: "owner" | "admin" | "editor" | "visitor" | "none" | undefined; pageActionsComponent?: string | undefined; } | { title: Record<string, string>; description: string; route: string; pageBodyComponent: string; slug: string; components: { PageBodyComponent: (_props: any) => any; PageActionsComponent?: ((_props: any) => any) | undefined; InnerSidebarComponent?: ((_props: any) => any) | undefined; }; sidebar: "double"; innerSidebarComponent: string; icon?: string | undefined; requiredPermissions?: "owner" | "admin" | "editor" | "visitor" | "none" | undefined; pageActionsComponent?: string | undefined; })[]; adminPages: ({ title: Record<string, string>; description: string; route: string; pageBodyComponent: string; slug: string; components: { PageBodyComponent: (_props: any) => any; PageActionsComponent?: ((_props: any) => any) | undefined; InnerSidebarComponent?: ((_props: any) => any) | undefined; }; sidebar: "single"; icon?: string | undefined; requiredPermissions?: "owner" | "admin" | "editor" | "visitor" | "none" | undefined; pageActionsComponent?: string | undefined; } | { title: Record<string, string>; description: string; route: string; pageBodyComponent: string; slug: string; components: { PageBodyComponent: (_props: any) => any; PageActionsComponent?: ((_props: any) => any) | undefined; InnerSidebarComponent?: ((_props: any) => any) | undefined; }; sidebar: "double"; innerSidebarComponent: string; icon?: string | undefined; requiredPermissions?: "owner" | "admin" | "editor" | "visitor" | "none" | undefined; pageActionsComponent?: string | undefined; })[]; };