---
import ContourField from './ContourField.astro';
interface Stat {
label: string;
value: string | number;
/** Paint the value in the banner's accent — one per banner, the number
* worth reading first. */
accent?: boolean;
}
interface Props {
/** Mono lockup before the rule, e.g. `03 ^: ACTIVE DIRECTORY`. */
n: string;
label: string;
title: string;
blurb?: string;
stats?: Stat[];
accent?: 'iris' | 'foam' | 'love' | 'gold' | 'rose' | 'pine';
}
const { n, label, title, blurb, stats = [], accent = 'foam' } = Astro.props;
---
{n}
^:
{label}
{title}
{blurb &&
{blurb}
}
{stats.length > 0 && (
{stats.map((s) => (
- {s.label}
- {s.value}
))}
)}