44 lines
1.6 KiB
TypeScript
44 lines
1.6 KiB
TypeScript
import { Outlet } from "react-router-dom";
|
|
import { paths } from "../../../shared/config";
|
|
import { BrandLogo, MainRegion, NavItem, SkipLink } from "../../../shared/ui";
|
|
import styles from "./employer-shell.module.css";
|
|
|
|
const navigation = [
|
|
{ to: paths.employer.company, label: "Компания и команда" },
|
|
{ to: paths.employer.needs, label: "Потребности" },
|
|
{ to: paths.employer.candidates, label: "Кандидаты" },
|
|
{ to: paths.employer.invitations, label: "Приглашения" },
|
|
{ to: paths.employer.notifications, label: "Уведомления" },
|
|
{ to: paths.support, label: "Поддержка" },
|
|
] as const;
|
|
|
|
/**
|
|
* Employer cabinet layout, designed for desktop first: a graphite sidebar
|
|
* with vertical navigation next to a wide work area. Below 1024px the
|
|
* sidebar turns into a top bar with a scrollable section strip.
|
|
*/
|
|
export function EmployerShell() {
|
|
return (
|
|
<div className={styles.shell}>
|
|
<SkipLink />
|
|
<header className={styles.sidebar}>
|
|
<BrandLogo tone="dark" to={paths.employer.root} context="Кабинет работодателя" />
|
|
<nav className={styles.nav} aria-label="Разделы кабинета работодателя">
|
|
<ul className={styles.list}>
|
|
{navigation.map((item) => (
|
|
<li key={item.to}>
|
|
<NavItem to={item.to} tone="dark">
|
|
{item.label}
|
|
</NavItem>
|
|
</li>
|
|
))}
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
<MainRegion className={styles.main}>
|
|
<Outlet />
|
|
</MainRegion>
|
|
</div>
|
|
);
|
|
}
|