'use client'; import React, {FC} from 'react'; import {RadioStyle as S} from './styles/radio.style'; import {IRadio} from './radio.type'; import {radioSizeMapper} from './mappers/radio-size-mapper'; export const RadioComponent: FC = ({size, ...restProps}) => { const { checked, disabled, title, id, hint, color = 'primary', hoverable = true, } = restProps; const classes = { isChecked: checked ? 'checked' : '', isDisabled: disabled ? 'disabled' : '', }; return ( {checked && } {title || hint ? ( {title && {title}} {hint && {hint}} ) : null} ); };