import classNames from 'classnames'; import type { ReactNode } from 'react'; export interface RadioCardOption { value: T; label: ReactNode; description?: ReactNode; } export interface RadioCardsProps { value: T | null; onChange: (value: T) => void; options: RadioCardOption[]; name: string; } export function RadioCards({ value, onChange, options, name, }: RadioCardsProps) { return (
{options.map((option) => { const selected = value === option.value; return (