import { cn } from "@/lib/utils"; import type { FactItem } from "@/content/home"; import { PlaceholderText, visibleFacts } from "./Facts"; export interface FactsStripProps { items: readonly FactItem[]; className?: string; } /** * Speaker facts: one full-width row of equal cells separated by 1 px * vertical hairlines. Each cell = DM Mono label (muted) + Jost value. * Wraps to 2 / 3 columns below 1024 px. */ export function FactsStrip({ items, className }: FactsStripProps) { const rows = visibleFacts(items); if (!rows.length) return null; return (
div]:border-l [&>div]:border-line [&>div:first-child]:border-l-0", "[&>div:nth-child(2n+1)]:max-sm:border-l-0 [&>div:nth-child(3n+1)]:sm:max-lg:border-l-0", className, )} > {rows.map((f) => (
{f.label}
))}
); } export default FactsStrip;