import { type ReactNode } from "react"; export interface NavItem { id: string; label: string; icon: ReactNode; } interface SidebarProps { items: NavItem[]; activeId: string; onNavigate: (id: string) => void; } // Minimal SVG icons to avoid external dependency const ICONS: Record = { dashboard: ( ), nodes: ( ), flash: ( ), server: ( ), settings: ( ), }; export const DEFAULT_NAV_ITEMS: NavItem[] = [ { id: "dashboard", label: "Dashboard", icon: ICONS.dashboard }, { id: "nodes", label: "Nodes", icon: ICONS.nodes }, { id: "flash", label: "Flash", icon: ICONS.flash }, { id: "server", label: "Server", icon: ICONS.server }, { id: "settings", label: "Settings", icon: ICONS.settings }, ]; export function Sidebar({ items, activeId, onNavigate }: SidebarProps) { return ( ); }