import { cn } from "~/utils/cn"; import type { RenderIcon } from "./Icon"; import { Icon, IconInBox } from "./Icon"; import { Paragraph } from "./Paragraph"; const variations = { small: { label: { variant: "small" as const, className: "m-0 leading-[1.1rem]", }, description: { variant: "extra-small" as const, className: "m-0", }, }, base: { label: { variant: "base" as const, className: "m-0 leading-[1.1rem] ", }, description: { variant: "small" as const, className: "m-0", }, }, }; type DetailCellProps = { leadingIcon?: RenderIcon; leadingIconClassName?: string; trailingIcon?: RenderIcon; trailingIconClassName?: string; label: string | React.ReactNode; description?: string | React.ReactNode; className?: string; variant?: keyof typeof variations; boxClassName?: string; }; export function DetailCell({ leadingIcon, leadingIconClassName, trailingIcon, trailingIconClassName, label, description, className, variant = "small", boxClassName, }: DetailCellProps) { const variation = variations[variant]; return (