{"size": 442, "ext": "js", "max_stars_repo_path": "src/elements/content-explorer/checkboxCellRenderer.js", "max_stars_repo_name": "FrozenRain/box-ui-elements-custom", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/elements/content-explorer/checkboxCellRenderer.js", "max_issues_repo_name": "FrozenRain/box-ui-elements-custom", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/elements/content-explorer/checkboxCellRenderer.js", "max_forks_repo_name": "FrozenRain/box-ui-elements-custom", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 63.1428571429, "max_line_length": 170, "alphanum_fraction": 0.7081447964}
import React from 'react';
import Checkbox from '../../components/checkbox/Checkbox';

export default (handleChange: (idx: number, e: SyntheticInputEvent<HTMLInputElement>) => void, label: string) =>
  ({ cellData, rowIndex }: { cellData: boolean, rowIndex: number }) =>
      cellData.visible && <Checkbox isChecked={cellData.checked || false} label={label} name="is-selected" hideLabel={true} onChange={e => handleChange(rowIndex, e)}  />;
