import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { cn } from '../../../lib/utils.js';
import { Sidebar } from '../../layouts/sidebar/index.js';
import { Header } from '../../layouts/header/index.js';
export function DashboardLayout({ sidebarItems, pathname, title, actions, children, className, }) {
    return (_jsxs("div", { className: cn('flex h-screen', className), children: [_jsx("aside", { className: "w-64 border-r", children: _jsx(Sidebar, { items: sidebarItems, pathname: pathname }) }), _jsxs("div", { className: "flex flex-1 flex-col", children: [_jsx(Header, { title: title, actions: actions }), _jsx("main", { className: "flex-1 overflow-auto p-6", children: children })] })] }));
}
