commit5
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-29 22:03:09 +02:00
parent 57f6b3cc36
commit 413c201d97
54 changed files with 2753 additions and 14 deletions
+16 -1
View File
@@ -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>
);
}