import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { ControlCenter } from '../../components/features/control-center/index.js';
import { DeploymentStatusProvider } from '../../hooks/deployment-status-provider.js';
import { getGraphData } from './get-graph-data.js';
/** Skip static pre-rendering since we need runtime DI container and server context. */
export const dynamic = 'force-dynamic';
export default async function DashboardLayout({ children, drawer }) {
    const { nodes, edges, deployments } = await getGraphData();
    return (_jsx("div", { className: "h-screen w-full", children: _jsxs(DeploymentStatusProvider, { initialDeployments: deployments, children: [_jsx(ControlCenter, { initialNodes: nodes, initialEdges: edges, drawer: drawer }), children] }) }));
}
