import { Switch, Tooltip } from '@janhq/joi' import { InfoIcon } from 'lucide-react' type Props = { name: string title: string disabled?: boolean description: string checked: boolean onValueChanged?: (e: string | number | boolean) => void } const Checkbox = ({ title, checked, disabled = false, description, onValueChanged, }: Props) => { const onCheckedChange = (checked: boolean) => { onValueChanged?.(checked) } return (

{title}

} content={description} />
onCheckedChange(e.target.checked)} disabled={disabled} />
) } export default Checkbox