'use client'; import React from 'react'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { cn } from '@/lib/utils'; import { Icon } from '@/components/ui/Icon'; interface SidebarProps { isOpen?: boolean; onClose?: () => void; } export const Sidebar: React.FC = ({ isOpen = false, onClose, }) => { const pathname = usePathname(); const navigation = [ { group: 'Core Telemetry', items: [ { name: 'Dashboard', href: '/vcon/dashboard', icon: 'LayoutDashboard' }, { name: 'Live Data Sync', href: '/vcon/data', icon: 'Activity', badge: 'Live' }, { name: 'CSV Exporter', href: '/vcon/export', icon: 'Download' }, ], }, { group: 'Management', items: [ { name: 'Client SDKs', href: '/vcon/clients', icon: 'Key' }, { name: 'CSV Storage & Disk', href: '/vcon/storage', icon: 'HardDrive' }, { name: 'Engine Settings', href: '/vcon/settings', icon: 'Sliders' }, ], }, { group: 'Integration', items: [ { name: 'Python SDK Guide', href: '/vcon/sdk', icon: 'FileCode2' }, { name: 'Live Simulator', href: '/vcon/simulator', icon: 'Play' }, ], }, ]; return ( <> {/* Mobile Backdrop */} {isOpen && (
)} {/* Sidebar Container */} ); }; export default Sidebar;