import type { HomepageOfficialTotals } from "yt-dlp-transcript-common/lib/homepageSummary"; // The family's numbers as one readout strip: hairline cells, a figure and a // plain label each. Everything is the sum over the official instances (the // summary's `official`), which is what the caption claims. // // The "gone" cell is the one that carries the project's argument, so it is the // one that gets the width: a full row on a phone, two cells on a wide screen. export function FamilyStats({ official, generatedAt, }: { official: HomepageOfficialTotals; generatedAt: string | null; }) { const cells = [ { value: official.hoursArchived, label: "Hours of speech" }, { value: official.transcripts, label: "Transcripts" }, { value: official.recordings, label: "Recordings" }, { value: official.channels, label: "Channels" }, { value: official.sites, label: "Official instances" }, ]; const built = generatedAt ? new Date(generatedAt) : null; const builtOk = built && !Number.isNaN(built.getTime()); return (
Across the official instances · index built{" "}
)}