first commit

This commit is contained in:
rodrigo committed 2025-04-10 23:07:21 -03:00
commit c9fb67e751
423 files changed
+53287

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
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
}));
}