23 lines
767 B
TypeScript
23 lines
767 B
TypeScript
import { ReactNode } from "react";
|
|
import CommandPalette from "../ui/commandPalettes/CommandPalette";
|
|
import SubframeAppShell from "./SubframeAppShell";
|
|
import SkipToContent from "../core/SkipToContent";
|
|
|
|
interface Props {
|
|
layout: "app" | "admin" | "docs";
|
|
children: ReactNode;
|
|
}
|
|
|
|
export default function AppLayout({ layout, children }: Props) {
|
|
// D-D0a: App-Rahmen ist jetzt Davids Subframe-Shell (SidebarWithSections + Topbar) statt der
|
|
// shadcn-Shell. Der CommandPalette-Wrapper bleibt (liefert den useCommandPalette-Kontext fuer die Topbar).
|
|
return (
|
|
<div>
|
|
<SkipToContent />
|
|
<CommandPalette key={layout} layout={layout}>
|
|
<SubframeAppShell layout={layout}>{children}</SubframeAppShell>
|
|
</CommandPalette>
|
|
</div>
|
|
);
|
|
}
|