import { useNodes } from '@/context/NodeContext'; import type { NotificationItem } from './dashboard/types'; import type { SectionId } from './settings/types'; import { HealthStatusBar, ResourceGauges, StackHealthTable, ConfigurationStatus, RecentAlerts, useDashboardData, } from './dashboard'; import { DashboardActivityCard } from './dashboard/DashboardActivityCard'; interface HomeDashboardProps { onNavigateToStack?: (stackFile: string) => void; onOpenSettingsSection?: (section: SectionId) => void; notifications: NotificationItem[]; onClearNotifications: () => void | Promise; } const NOOP = () => {}; export default function HomeDashboard({ onNavigateToStack, onOpenSettingsSection, notifications, onClearNotifications }: HomeDashboardProps) { const { activeNode, nodes } = useNodes(); const data = useDashboardData(); const activeNodeName = activeNode?.name || 'Local'; return (
); }