import React from 'react'; import { FormControl, FormControlLabel, FormLabel, Radio as MuiRadio, RadioGroup as MuiRadioGroup, } from '@mui/material'; import { styled } from '@mui/material/styles'; import { RadioBaseProps } from '../interfaces/RadioGroup'; import { TextFieldSizeVariant } from '../types'; const RadioStyled = styled(MuiRadio)({}); const sizes: TextFieldSizeVariant[] = ['small', 'medium']; export const RadioGroup = ({ ...props }: RadioBaseProps) => { const { onChange } = props; return ( {props.label} onChange(event, value) : undefined} > {props.options && props.options.map((item, key) => ( } label={item.label} key={key} sx={{alignItems: "center"}} /> ))} ); };