import Switch from '@mui/material/Switch';
import Typography from '@mui/material/Typography';
const ContentSwitch = ({
isEditing,
checked,
onChange,
trueLabel,
falseLabel,
t,
}) => {
return isEditing ? (
) : (
{checked ? t(trueLabel) : t(falseLabel)}
);
};
export default ContentSwitch;