{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "app-shell", "dependencies": [ "@inertiajs/react" ], "registryDependencies": [ "sidebar" ], "files": [ { "path": "registry/new-york-v4/components/app-shell.tsx", "content": "import { usePage } from \"@inertiajs/react\";\nimport type { ReactNode } from \"react\";\nimport { SidebarProvider } from \"@/components/ui/sidebar\";\nimport type { AppVariant } from \"@/lib/types\";\n\ntype Props = {\n children: ReactNode;\n variant?: AppVariant;\n};\n\ntype PageProps = {\n sidebarOpen?: boolean;\n};\n\nexport function AppShell({ children, variant = \"sidebar\" }: Props) {\n const isOpen = usePage().props.sidebarOpen ?? true;\n\n if (variant === \"header\") {\n return
{children}
;\n }\n\n return {children};\n}\n", "type": "registry:component" } ], "type": "registry:component" }