import type { IconProps } from "@/types/components/icon" interface BaseCardProps extends React.LabelHTMLAttributes { Icon?: (props: IconProps) => JSX.Element declined?: boolean iconHeight?: number iconWidth?: number name?: string saving?: boolean subtitle?: string title: string type: "checkbox" | "radio" value?: string } interface ListCardProps extends BaseCardProps { list: { title: string }[] text?: never } interface TextCardProps extends BaseCardProps { list?: never text: string } export type CardProps = ListCardProps | TextCardProps export type CheckboxProps = | Omit | Omit export type RadioProps = | Omit | Omit