import clsx from "clsx"; import type { License } from "@/lib/api"; import { formatDate, formatStamp, limitLabel } from "@/lib/format"; const REASON: Record = { new: "New", renewal: "Renewal", tier_change: "Tier change", relink: "Relink", manual: "Manual", }; /* * Licences are append-only: a renewal supersedes its predecessor rather than * replacing it. So this is a ledger, not a table. Superseded rows stay visible * and are overprinted the way a cancelled instrument is — hiding them would * destroy the only record of why an instance stopped working on a given date. */ export function Ledger({ licenses }: { licenses: License[] }) { if (licenses.length === 0) { return (

No licence has ever been issued for this instance, so it is read-only.

); } return ( ); }