38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
import { Card, Notice, Page, Section, Tag } from "../../../shared/ui";
|
|
import { areaLabels, screens, type ScreenId } from "../model/screens";
|
|
import styles from "./placeholder-page.module.css";
|
|
|
|
type PlaceholderPageProps = {
|
|
screen: ScreenId;
|
|
};
|
|
|
|
/**
|
|
* Honest stand-in for a screen that a later task implements. It names the
|
|
* screen and lists what is planned, without imitating working features. The
|
|
* planned items are not a sequence, so they are a plain list.
|
|
*/
|
|
export function PlaceholderPage({ screen }: PlaceholderPageProps) {
|
|
const plan = screens[screen];
|
|
|
|
return (
|
|
<Page
|
|
title={plan.title}
|
|
eyebrow={areaLabels[plan.area]}
|
|
width={plan.area === "employer" ? "wide" : "narrow"}
|
|
>
|
|
<Notice tone="neutral" title={<Tag>Заготовка</Tag>}>
|
|
Экран будет реализован в одной из следующих задач. Сейчас здесь нет данных и действий.
|
|
</Notice>
|
|
<Section title="Что здесь появится" headingLevel={2}>
|
|
<Card as="div">
|
|
<ul className={styles.plan}>
|
|
{plan.planned.map((item) => (
|
|
<li key={item}>{item}</li>
|
|
))}
|
|
</ul>
|
|
</Card>
|
|
</Section>
|
|
</Page>
|
|
);
|
|
}
|