import { type ReactNode } from 'react';

import { type BreadcrumbItem } from '@/common/types';
import AppLayoutTemplate from '@/pages/layouts/app/AppSidebarLayout';

interface AppLayoutProps {
    children: ReactNode;
    breadcrumbs?: BreadcrumbItem[];
}

export default ({ children, breadcrumbs, ...props }: AppLayoutProps) => (
    <AppLayoutTemplate breadcrumbs={breadcrumbs} {...props}>
        {children}
    </AppLayoutTemplate>
);
