31 lines
774 B
JavaScript
31 lines
774 B
JavaScript
import { FormControlLabel, Switch } from "@mui/material";
|
|
|
|
function SwitchContent({ data, changeData }) {
|
|
return (
|
|
<div className="flex items-center justify-start gap-[12px]">
|
|
<FormControlLabel
|
|
control={
|
|
<Switch
|
|
checked={data.turn}
|
|
onChange={(event) =>
|
|
changeData(event.target.checked ? 1 : 0, "turn", false, "turn")
|
|
}
|
|
/>
|
|
}
|
|
sx={{
|
|
".MuiFormControlLabel-label": {
|
|
color: "#3B3B3B",
|
|
fontSize: "16px",
|
|
fontWeight: 500,
|
|
},
|
|
marginLeft: "0 !important",
|
|
}}
|
|
label="فقط پزشکان دارای نوبت"
|
|
labelPlacement="start"
|
|
/>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default SwitchContent;
|