import * as _ from "lodash"; import * as React from "react"; import { SelectAction } from "../../utilities/states"; interface ICheckboxProps { id: string; onSelect?: (selectAction: SelectAction) => void; } export const Checkbox = ({ id, onSelect }: ICheckboxProps) => (
{ if (event.target.checked) { onSelect(SelectAction.Select); } else { onSelect(SelectAction.Deselect); } } }} />
)