"use client"; import { useState } from "react"; import { AuditLogDrawer } from "@/components/mission-control/AuditLogDrawer"; import { GlobalAgentRoster } from "@/components/mission-control/GlobalAgentRoster"; import { MissionControlPanel } from "@/components/mission-control/MissionControlPanel"; import { Button } from "@/components/ui/button"; import { useSessions } from "@/hooks/useMissionControl"; const DEFAULT_PANEL_SLOTS = ["panel-1", "panel-2", "panel-3", "panel-4"] as const; export function MissionControlLayout(): React.JSX.Element { const { sessions } = useSessions(); const [selectedSessionId, setSelectedSessionId] = useState(); // First panel: selected session (from roster click) or first available session const firstPanelSessionId = selectedSessionId ?? sessions[0]?.id; const panelSessionIds = [firstPanelSessionId, undefined, undefined, undefined] as const; return (
Audit Log } />
); }