import { useLocation } from 'react-router-dom'; import { HomeIcon, ScaleIcon, UserGroupIcon, UserIcon, ClipboardDocumentCheckIcon, DocumentTextIcon, } from '@heroicons/react/24/outline'; export function useNavigation() { const { pathname } = useLocation(); return [ { name: 'Dashboard', href: '/dashboard', icon: HomeIcon }, { name: 'Processos', href: '/processos', icon: ScaleIcon }, { name: 'Clientes', href: '/clientes', icon: UserGroupIcon }, { name: 'Atendimentos', href: '/atendimentos', icon: UserIcon }, { name: 'Tarefas', href: '/tarefas', icon: ClipboardDocumentCheckIcon }, { name: 'Documentos', href: '/documentos', icon: DocumentTextIcon }, ].map(item => ({ ...item, current: pathname === item.href })); }