import type { ReactNode } from 'react'; import { Command } from '@/components/ui/command'; import { ScrollArea } from '@/components/ui/scroll-area'; import type { NotificationItem } from '@/components/dashboard/types'; import { SidebarActions } from './SidebarActions'; import { SidebarActivityTicker } from './SidebarActivityTicker'; import { SidebarBrand } from './SidebarBrand'; import { SidebarSearch } from './SidebarSearch'; import { StackList, type StackListProps } from './StackList'; export interface StackSidebarProps { isDarkMode: boolean; nodeSwitcherSlot: ReactNode; createStackSlot: ReactNode | null; onScan: () => void; isScanning: boolean; canCreate: boolean; searchQuery: string; onSearchChange: (v: string) => void; list: StackListProps; notifications: NotificationItem[]; tickerConnected: boolean; onOpenActivity: () => void; } export function StackSidebar(props: StackSidebarProps) { const { isDarkMode, nodeSwitcherSlot, createStackSlot, onScan, isScanning, canCreate, searchQuery, onSearchChange, list, notifications, tickerConnected, onOpenActivity, } = props; return (
{nodeSwitcherSlot}
{canCreate && createStackSlot !== null && ( )}
); }