import type { ReactNode } from "react"; import { cn } from "@/lib/utils"; // The figures of a card on the dive page, set as a dive card's are and each about // as wide as "211.44 bar", so they line up from card to card and wrap onto a // second line on a phone too narrow for three, as the dive hero's figures do. export function CardFigures({ className, children, }: { className?: string; children: ReactNode; }) { return (
{children}
); } // A figure a record may not carry, muted where it carries none: an absence at // full contrast reads as a value. export function CardFigure({ label, value, }: { label: ReactNode; value: ReactNode; }) { return (
{label}
{value ?? "-"}
); }