import { PropsWithChildren } from 'react'; import { RadioProps, RadioStatus } from '../Radio/types'; import { ProductIconName } from '../../DataDisplays/ProductIcon/ProductIcon.types'; interface RadioCardBaseProps { className?: string; testId?: string; isWide?: boolean; } interface RadioCardMainProps extends RadioCardBaseProps, RadioProps { title: string; description?: string; name?: string; disabled?: boolean; } interface NormalLayoutProps extends RadioCardMainProps { isWide?: false; iconName: ProductIconName; } interface WideLayoutProps extends RadioCardMainProps { isWide: true; iconName?: ProductIconName; } export type RadioCardProps = NormalLayoutProps | WideLayoutProps; export interface RadioCardPartsProps extends RadioProps, PropsWithChildren { isWide?: boolean; className?: string; iconName?: ProductIconName; } interface RadioCardIconBaseProps { iconName: ProductIconName; } export interface RadioCardIconProps extends RadioCardIconBaseProps, RadioStatus { checked?: boolean; disabled?: boolean; isError?: boolean; } export interface TitleContainerProps extends PropsWithChildren { isWide: boolean; } export {};