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