import classNames from 'classnames'; import { Icon } from './Icon'; import { HStack } from './Stacks'; interface Props { checked: boolean; title: string; onChange: (checked: boolean) => void; disabled?: boolean; className?: string; hideLabel?: boolean; } export function Checkbox({ checked, onChange, className, disabled, title, hideLabel }: Props) { return (
onChange(!checked)} />
{/**/} {/**/} {!hideLabel && title}
); }