diff --git a/components/soumet/otomatik-switch.js b/components/soumet/otomatik-switch.js new file mode 100644 index 0000000..8b0f37f --- /dev/null +++ b/components/soumet/otomatik-switch.js @@ -0,0 +1,22 @@ +import PropTypes from 'prop-types' +import FormGroup from '@mui/material/FormGroup' +import FormControlLabel from '@mui/material/FormControlLabel' +import Switch from '@mui/material/Switch' + +export default function OtomatikSwitch({tradiksyonOtomatik, setTradiksyonOtomatik, disabled}) { + const handleChange = event => { + setTradiksyonOtomatik(event.target.checked) + } + + return ( + + } disabled={disabled} label='Traduction automatique du Français vers les autres langues' labelPlacement='top' /> + + ) +} + +OtomatikSwitch.propTypes = { + tradiksyonOtomatik: PropTypes.bool.isRequired, + setTradiksyonOtomatik: PropTypes.func.isRequired, + disabled: PropTypes.bool.isRequired +}