'use client'; import { ArrowLeftFromLine, ArrowRightFromLine } from 'lucide-react'; import { usePathname } from 'next/navigation'; import { useTranslations } from 'next-intl'; import { Button } from '@/components/ui/common/Button'; import { Hint } from '@/components/ui/elements/Hint'; import { useSidebar } from '@/hooks/useSidebar'; export const SidebarHeader = () => { const t = useTranslations('layout.sidebar.header'); const pathname = usePathname(); const { isCollapsed, open, close } = useSidebar(); const label = isCollapsed ? t('expand') : t('collapse'); return isCollapsed ? (