"use client" import type { NemoClawSummary, SandboxInventoryItem } from '../hooks/useSandboxInventory' interface SidebarProps { hostIP: string sandboxes: SandboxInventoryItem[] nemoclaw: NemoClawSummary | null dashboardSessionId: string selectedSandboxId: string | null onSandboxSelect: (id: string | null) => void isSubmenuOpen: boolean onToggleSubmenu: () => void isCreateMode: boolean isDestroyMode: boolean activeView: 'overview' | 'settings' | 'sandboxes' onCreateClick: () => void onDestroyClick: () => void onOverviewClick: () => void onSettingsClick: () => void onExitMode: () => void } export default function Sidebar({ hostIP, sandboxes, nemoclaw, dashboardSessionId, selectedSandboxId, onSandboxSelect, isSubmenuOpen, onToggleSubmenu, isCreateMode, isDestroyMode, activeView, onCreateClick, onDestroyClick, onOverviewClick, onSettingsClick, onExitMode }: SidebarProps) { return ( <>
{isDestroyMode && 'SELECT A SANDBOX BELOW'} {!isCreateMode && !isDestroyMode && `${sandboxes.filter(s => s.status === 'running').length} RUNNING / ${sandboxes.length} TOTAL`}
{!isCreateMode && !isDestroyMode && (Inventory Source
Live OpenShell sandboxes
NemoClaw Operator
{nemoclaw?.available ? 'Registry/service summary available' : 'No NemoClaw summary detected'}
Dashboard session: {dashboardSessionId.slice(0, 8)}
{nemoclaw?.defaultSandboxNames?.length ? (Default: {nemoclaw.defaultSandboxNames.join(', ')}
) : null} {nemoclaw?.serviceLines?.slice(0, 2).map((line) => ({line}
))}CONFIGURATION PANEL WILL OPEN BELOW
NO SANDBOXES TO DESTROY