Files
nobat724_front/components/doctors/modal/Radios.js
T
2024-10-19 23:37:39 +03:30

30 lines
683 B
JavaScript

import { FormControlLabel, Radio, RadioGroup } from "@mui/material";
function Radios({ group, value, changeData }) {
return (
<RadioGroup
value={value}
className="radio-mui"
onChange={(e) => changeData(e.target.value)}
sx={{
"& .MuiFormControlLabel-root": {
marginRight: "0 !important",
transform: "translateX(9px)",
},
}}
>
{group.map((item, idx) => (
<FormControlLabel
control={<Radio className="!ml-2" />}
className="!text-[#525252]"
label={item}
value={idx}
key={idx}
/>
))}
</RadioGroup>
);
}
export default Radios;