import React from 'react'; import { Box, Checkbox, FormControlLabel, Typography } from '@mui/material'; const CheckboxWithDesc = ({ title, description, checked, onChange, disabled }: { title: string; description?: string; checked: boolean; onChange: (value: boolean) => void; disabled?: boolean; }) => { const handleChange = (event: React.ChangeEvent) => { onChange(event.target.checked); }; return ( } label={title} /> {description && ( {description} )} ); }; export default CheckboxWithDesc;