first commit
This commit is contained in:
commit
c9fb67e751
423 files changed
+53287
No files matched your search
@@ -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
|
||||
}));
|
||||
}
|
||||
Reference in new issue
Block a user