"use client"; import { memo } from "react"; import type { HistoryAccent, HistoryItem, HistoryViewProps } from "./History.types"; const ACCENT_CLASS: Record = { brand: "bg-[var(--color-content-default-brand-primary)]", positive: "bg-[var(--color-surface-default-positive-primary)]", }; const DATE_CLASS = "font-bricolage-grotesque text-display-xxs text-[var(--color-content-default-primary)]"; const BODY_CLASS = "font-inter text-paragraph-m text-[var(--color-content-default-secondary)]"; function DateMark({ date, accent }: { date: string; accent: HistoryAccent }) { return (

{date}

); } function HistoryItemView({ item }: { item: HistoryItem }) { if (item.kind === "callout") { return ( ); } return (

{item.body.map((run, index) => run.emphasis ? ( {run.text} ) : ( {run.text} ), )}

); } function HistoryView({ heading, items }: HistoryViewProps) { return (

{heading}

{items.map((item, index) => ( ))}
); } HistoryView.displayName = "HistoryView"; export default memo(HistoryView);