2025-07-10 16:14:36 +02:00
|
|
|
import { AppContent } from '@/components/Display/AppContent';
|
|
|
|
|
import { AppShell } from '@/components/Display/AppShell';
|
|
|
|
|
import { AppSidebar } from '@/components/Display/AppSidebar';
|
|
|
|
|
import { AppSidebarHeader } from '@/components/Display/AppSidebarHeader';
|
2025-07-10 15:24:15 +02:00
|
|
|
import { type BreadcrumbItem } from '@/types';
|
|
|
|
|
import { type PropsWithChildren } from 'react';
|
|
|
|
|
|
|
|
|
|
export default function AppSidebarLayout({ children, breadcrumbs = [] }: PropsWithChildren<{ breadcrumbs?: BreadcrumbItem[] }>) {
|
|
|
|
|
return (
|
|
|
|
|
<AppShell variant="sidebar">
|
|
|
|
|
<AppSidebar />
|
|
|
|
|
<AppContent variant="sidebar" className="overflow-x-hidden">
|
|
|
|
|
<AppSidebarHeader breadcrumbs={breadcrumbs} />
|
|
|
|
|
{children}
|
|
|
|
|
</AppContent>
|
|
|
|
|
</AppShell>
|
|
|
|
|
);
|
|
|
|
|
}
|