Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-cloud/apps/web/app/routes/app.$tenant/hr.tsx
T

75 lines
2.5 KiB
TypeScript

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 (
<SidebarIconsLayout
label={{ align: "right" }}
items={[
{
name: t("shared.overview"),
href: UrlUtils.getModulePath(params, "hr"),
exact: true,
icon: <ViewBoardsIcon className="h-5 w-5" />,
},
{
name: t("hr.nav.leave"),
href: UrlUtils.getModulePath(params, "hr/leave"),
icon: <CalendarIcon className="h-5 w-5" />,
},
{
name: t("hr.nav.sick"),
href: UrlUtils.getModulePath(params, "hr/sick"),
icon: <BellIcon className="h-5 w-5" />,
},
{
name: t("hr.nav.announcements"),
href: UrlUtils.getModulePath(params, "hr/announcements"),
icon: <MegaphoneIcon className="h-5 w-5" />,
},
{
name: t("hr.nav.payslips"),
href: UrlUtils.getModulePath(params, "hr/payslips"),
icon: <FileTextIcon className="h-5 w-5" />,
},
{
name: t("hr.nav.requests"),
href: UrlUtils.getModulePath(params, "hr/requests"),
icon: <ClipboardIcon className="h-5 w-5" />,
},
{
name: t("hr.nav.surveys"),
href: UrlUtils.getModulePath(params, "hr/surveys"),
icon: <ViewBoardsIcon className="h-5 w-5" />,
},
{
name: t("hr.nav.directory"),
href: UrlUtils.getModulePath(params, "hr/directory"),
icon: <UserIcon className="h-5 w-5" />,
},
{
name: t("hr.nav.locations"),
href: UrlUtils.getModulePath(params, "hr/locations"),
icon: <GlobeIcon className="h-5 w-5" />,
},
{
name: t("hr.nav.myDocuments"),
href: UrlUtils.getModulePath(params, "hr/my-documents"),
icon: <FileTextIcon className="h-5 w-5" />,
},
]}
>
<Outlet />
</SidebarIconsLayout>
);
}