import { Box, FormControlLabel } from "@mui/material"; import { useTranslation } from "react-i18next"; import { isTrueVal } from "../../../../session/utils.ts"; import { StyledCheckbox } from "../../../Common/StyledComponents.tsx"; import { PropsContentProps } from "./CustomPropsItem.tsx"; const BooleanPropsItem = ({ prop, onChange, loading, readOnly, fullSize }: PropsContentProps) => { const { t } = useTranslation(); const handleChange = (_: any, checked: boolean) => { onChange(checked.toString()); }; return ( } label={fullSize ? t(prop.props.name) : undefined} disabled={readOnly || loading} /> ); }; export default BooleanPropsItem;