@@ -9,6 +9,7 @@ import {
|
||||
DropdownMenuTrigger,
|
||||
} from '@/components/ui/dropdown-menu';
|
||||
import { UserMenuContent } from '@/components/user-menu-content';
|
||||
import { SgcWorkspaceShell } from '@/components/sgc-workspace-shell';
|
||||
|
||||
type Entry = { label: string; path: string; demo: string; roles?: string[] };
|
||||
const readers = ['admin', 'procurement', 'finance', 'department_head'];
|
||||
@@ -159,7 +160,7 @@ const groups: { label: string; entries: Entry[] }[] = [
|
||||
},
|
||||
];
|
||||
|
||||
export function SgcShell({
|
||||
function SgcPreviewShell({
|
||||
children,
|
||||
demo = false,
|
||||
}: {
|
||||
@@ -320,3 +321,17 @@ export function SgcShell({
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export function SgcShell({
|
||||
children,
|
||||
demo = false,
|
||||
}: {
|
||||
children: ReactNode;
|
||||
demo?: boolean;
|
||||
}) {
|
||||
return demo ? (
|
||||
<SgcPreviewShell demo>{children}</SgcPreviewShell>
|
||||
) : (
|
||||
<SgcWorkspaceShell>{children}</SgcWorkspaceShell>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user