import { FormControlLabel, Radio, RadioGroup } from "@mui/material";

function Radios({ value, handleChange }) {
  return (
    <RadioGroup
      dir="ltr"
      defaultValue={value}
      onChange={handleChange}
      className="!flex radio-mui !flex-row !mb-[24px] !my-[40px] !gap-[36px] !items-center !justify-end"
      sx={{
        "& .muirtl-j204z7-MuiFormControlLabel-root": {
          marginLeft: "0 !important",
        },
      }}
    >
      <FormControlLabel
        className="!text-[#A1A1A1]"
        value={0}
        control={<Radio />}
        label="روز کاری"
      />
      <FormControlLabel
        className="!text-[#A1A1A1]"
        value={1}
        control={<Radio />}
        label="تعطیل"
      />
    </RadioGroup>
  );
}

export default Radios;
