import { Outlet, useParams } from "react-router"; import { useTranslation } from "react-i18next"; import SidebarIconsLayout from "~/components/ui/layouts/SidebarIconsLayout"; import UrlUtils from "~/utils/app/UrlUtils"; import { BellIcon, ClipboardIcon, FileTextIcon, GlobeIcon, UserIcon } from "~/components/ui/icons/vendor"; import CalendarIcon from "~/components/ui/icons/CalendarIcon"; import MegaphoneIcon from "~/components/ui/icons/emails/MegaphoneIcon"; import ViewBoardsIcon from "~/components/ui/icons/ViewBoardsIcon"; export default function HrRoute() { const { t } = useTranslation(); const params = useParams(); return ( , }, { name: t("hr.nav.leave"), href: UrlUtils.getModulePath(params, "hr/leave"), icon: , }, { name: t("hr.nav.sick"), href: UrlUtils.getModulePath(params, "hr/sick"), icon: , }, { name: t("hr.nav.announcements"), href: UrlUtils.getModulePath(params, "hr/announcements"), icon: , }, { name: t("hr.nav.payslips"), href: UrlUtils.getModulePath(params, "hr/payslips"), icon: , }, { name: t("hr.nav.requests"), href: UrlUtils.getModulePath(params, "hr/requests"), icon: , }, { name: t("hr.nav.surveys"), href: UrlUtils.getModulePath(params, "hr/surveys"), icon: , }, { name: t("hr.nav.directory"), href: UrlUtils.getModulePath(params, "hr/directory"), icon: , }, { name: t("hr.nav.locations"), href: UrlUtils.getModulePath(params, "hr/locations"), icon: , }, { name: t("hr.nav.myDocuments"), href: UrlUtils.getModulePath(params, "hr/my-documents"), icon: , }, ]} > ); }