import type { ReactNode } from "react" import { toClassName } from "../toClassName.ts" export type ValuePair = { id: string label: ReactNode value: ReactNode } export type ValuePairsProps = { className?: string items: readonly ValuePair[] label: string } /** Compact label-over-value pairs. Wrap whole pairs rather than splitting their units. */ export const ValuePairs = ({ className, items, label, }: ValuePairsProps): ReactNode => (
{items.map((item) => (
{item.label}
{item.value}
))}
)