14 lines
561 B
TypeScript
14 lines
561 B
TypeScript
import { AppContent } from '@/components/Display/AppContent';
|
|
import { AppHeader } from '@/components/Display/AppHeader';
|
|
import { AppShell } from '@/components/Display/AppShell';
|
|
import { type BreadcrumbItem } from '@/types';
|
|
import type { PropsWithChildren } from 'react';
|
|
|
|
export default function AppHeaderLayout({ children, breadcrumbs }: PropsWithChildren<{ breadcrumbs?: BreadcrumbItem[] }>) {
|
|
return (
|
|
<AppShell>
|
|
<AppHeader breadcrumbs={breadcrumbs} />
|
|
<AppContent>{children}</AppContent>
|
|
</AppShell>
|
|
);
|
|
}
|