import { useState } from 'react'; import { NavLink } from 'react-router-dom'; import { Users, LayoutDashboard, PanelLeftClose, PanelLeftOpen, PanelRightClose, PanelRightOpen } from 'lucide-react'; import { useTranslation } from '../hooks/useTranslation'; export const Sidebar = () => { const [isCollapsed, setIsCollapsed] = useState(false); const { t, lang } = useTranslation(); const isRtl = lang === 'fa'; const ToggleIcon = isRtl ? (isCollapsed ? PanelRightOpen : PanelRightClose) : (isCollapsed ? PanelLeftOpen : PanelLeftClose); const navItems = [ { path: '/workspaces', icon: LayoutDashboard, label: t.sidebar?.workspaces || 'Workspaces' }, { path: '/clients', icon: Users, label: t.sidebar?.clients || 'Clients' }, ]; return ( ); };