// AK-P17a Interim-UI (AD-28) — HR hub launchpad composed from ~/ui (D-HR // "HR-Hub-Start", archetype A1/A6). Pure presentational: the loader gates the // connector + permission and passes the resolved quick-link list in as a prop; // this screen only renders. The richer hub widgets (announcements, pending // duties, birthdays) arrive with their data in follow-up tickets; the interim // screen renders exactly what the loader provides. Final Subframe optics = a // tracked design-nachzug once David's D-HR delta ships. import { useTranslation } from "react-i18next"; import { FeatherArrowRight, FeatherLock } from "@subframe/core"; import { Card } from "~/ui/components/Card"; import { EmptyState } from "~/ui/components/EmptyState"; export type HrHubLink = { /** i18n key for the link label (e.g. "hr.nav.directory"). */ readonly labelKey: string; readonly href: string; }; export type HrHubPageProps = { /** False when the tenant has the HR module gated off (locked state). */ moduleActive: boolean; links: readonly HrHubLink[]; }; export function HrHubPage({ moduleActive, links }: HrHubPageProps) { const { t } = useTranslation(); if (!moduleActive) { return (
); } return (
{/* Header: title + description (0px rhythm) */}
{t("hr.hub.title")} {t("hr.hub.subtitle")}
); }