import React from 'react'; import { Disclosure } from '@headlessui/react'; import { MenuIcon, XIcon } from '@heroicons/react/outline'; import clsx from 'clsx'; import { Link, useLocation } from 'react-router-dom'; import { DASHBOARD_APPS } from 'src/modules/dashboard/consts'; // eslint-disable-next-line @typescript-eslint/no-empty-interface interface HeaderProps {} const Header: React.FC = () => { const { pathname } = useLocation(); return ( <> {({ open }) => (
{/* Mobile menu button */} Open main menu {open ? (
Local-IT Local-IT
{/* Current: "border-primary-500 text-gray-900", Default: "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700" */} {DASHBOARD_APPS('').map((app) => ( {app.name} ))}
{DASHBOARD_APPS('').map((app) => ( {app.name} ))}
)}
); }; export default Header;