import { CircleFill, Circle } from "react-bootstrap-icons"; const Radiogroup = (props) => { const { className, classNames, labelText, title, price, ref, onClick, value, options, disabled, radioError, } = props; const classCheckbox = "checkbox"; const classOption = "option"; return (
{title &&
{title}
}
{options && options?.length && options.map((option, index) => (
!disabled && onClick && onClick(option)} >
{value === option.value ? (
{ !disabled && onClick(e); }} />
{option.name}
) : (
{ !disabled && onClick(e); }} />
{option.name}
)}
))}
{radioError ? (
{radioError}
) : ( <> )}
); }; /** * A radio button is a quick way to extract a single coded answer from our users by presenting multiple possibilities and allowing only one option to be chosen. */ export default Radiogroup;