NEW_CPM/resources/js/layouts/app-layout.tsx
2025-04-02 17:49:09 +05:45

28 lines
776 B
TypeScript

import { Toaster } from '@/components/ui/sonner';
import AppLayoutTemplate from '@/layouts/app/app-sidebar-layout';
import { type BreadcrumbItem } from '@/types';
import { type ReactNode } from 'react';
interface AppLayoutProps {
children: ReactNode;
breadcrumbs?: BreadcrumbItem[];
}
export default ({ children, breadcrumbs, ...props }: AppLayoutProps) => (
<AppLayoutTemplate breadcrumbs={breadcrumbs} {...props}>
{children}
<Toaster
closeButton
richColors
position="bottom-right"
duration={4000}
visibleToasts={3}
toastOptions={{
style: {
fontFamily: 'inherit',
},
}}
/>
</AppLayoutTemplate>
);