'use client'; import { UserNav } from '@/components/user-nav'; import { navs } from '@/config/navs'; import { Sidebar, SidebarContent, SidebarFooter, SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar, } from '@workspace/airo-ui/components/sidebar'; import { Icon } from '@workspace/ui/custom-components/icon'; import { useTranslations } from 'next-intl'; import Image from 'next/legacy/image'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; export function SidebarLeft({ ...props }: React.ComponentProps) { const t = useTranslations('menu'); const pathname = usePathname(); const { toggleSidebar } = useSidebar(); return (
logo
{navs .filter((v) => !v.hidden) .map((nav, navIndex) => ( {nav.icon && } {t(nav.title)} ))}
); }