feat(proj): init

This commit is contained in:
vl.arkhangelskii
2026-09-21 03:53:15 +03:00
commit 3e34f391b3
258 changed files with 20968 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
import type { ReactNode } from "react";
import { AppListSection, AppListTile } from "../../ui";
export type MetricItem = {
label: string;
value: ReactNode;
warn?: boolean;
};
type Props = {
items: MetricItem[];
};
export function MetricGrid({ items }: Props) {
return (
<AppListSection header="Сводка">
{items.map((item) => (
<AppListTile
key={item.label}
title={item.label}
value={<span className={item.warn ? "is-warn" : undefined}>{item.value}</span>}
/>
))}
</AppListSection>
);
}