mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 14:06:15 +00:00
20 lines
608 B
TypeScript
20 lines
608 B
TypeScript
import { AppContent } from '@/components/app-content';
|
|
import { AppHeader } from '@/components/app-header';
|
|
import { AppShell } from '@/components/app-shell';
|
|
import { type BreadcrumbItem } from '@/types';
|
|
import type { PropsWithChildren } from 'react';
|
|
import { usePoll } from '@inertiajs/react';
|
|
import { Toaster } from '@/components/ui/sonner';
|
|
|
|
export default function AppHeaderLayout({ children }: PropsWithChildren<{ breadcrumbs?: BreadcrumbItem[] }>) {
|
|
usePoll(10000);
|
|
|
|
return (
|
|
<AppShell>
|
|
<AppHeader />
|
|
<AppContent>{children}</AppContent>
|
|
<Toaster />
|
|
</AppShell>
|
|
);
|
|
}
|