Publish the current application, design, and Phase 1 deployment updates. Excludes ignored personal notes, local MCP config, and generated TypeScript build info.
29 lines
1009 B
TypeScript
29 lines
1009 B
TypeScript
import type { ReactNode } from 'react';
|
|
|
|
type Dot = 'ok' | 'off' | 'pending';
|
|
type Item = { label: string; value: ReactNode; dot?: Dot };
|
|
|
|
const DOT_CLASS: Record<Dot, string> = {
|
|
ok: 'bg-[var(--accent)]',
|
|
off: 'bg-[var(--text-faint)]',
|
|
pending: 'bg-[var(--warning)]',
|
|
};
|
|
|
|
export function StatStrip({ items }: { items: Item[] }) {
|
|
return (
|
|
<div className="mb-4 grid grid-cols-2 gap-px border border-[var(--border)] bg-[var(--border)] md:grid-cols-4">
|
|
{items.map((item) => (
|
|
<div key={item.label} className="bg-[var(--surface)] px-4 py-3">
|
|
<div className="mb-1 text-[10px] uppercase tracking-wider text-[var(--text-faint)]">
|
|
{item.label}
|
|
</div>
|
|
<div className="flex items-center gap-2 text-lg font-medium leading-none tracking-tight text-[var(--text)]">
|
|
{item.dot && <span aria-hidden="true" className={`h-1.5 w-1.5 ${DOT_CLASS[item.dot]}`} />}
|
|
{item.value}
|
|
</div>
|
|
</div>
|
|
))}
|
|
</div>
|
|
);
|
|
}
|