import { createId } from "../../../utils/createId"; import { VuiFlexContainer } from "../../flex/FlexContainer"; import { VuiFlexItem } from "../../flex/FlexItem"; type Props = { checked: boolean; onChange: () => void; label?: string; disabled?: boolean; }; export const VuiCheckbox = ({ checked, onChange, label, disabled, ...rest }: Props) => { const id = createId(); const checkbox = ( ); if (!label) { return checkbox; } return ( {checkbox} ); };