// Regulatory wave timeline section
function Wave({ t }) {
const narrow = window.useNarrow(768);
const events = t.events;
return (
{t.title_a} {t.title_b}>}
sub={t.sub}
/>
{narrow ? (
{events.map((e, i) => (
))}
) : (
{/* spine */}
{events.map((e, i) => (
))}
{/* legend */}
)}
);
}
function Event({ e, compact, first }) {
if (compact) {
const isLive = e.state === "live";
const isSoon = e.state === "soon";
return (
{e.date}
{e.code}
{e.state === "live" ? "Live" : e.state === "soon" ? "Soon" : "Future"}
{e.title}
{e.note}
);
}
const isLive = e.state === "live";
const isSoon = e.state === "soon";
return (
{/* node */}
{e.date}
{e.code}
{e.title}
{e.note}
);
}
function LegendDot({ color, label }) {
return (
{label}
);
}
window.Wave = Wave;