text: import { drawBoolean } from "../data-grid-lib";
  import { GridCellKind } from "../data-grid-types";
  export const booleanCellRenderer = {
    getAccessibilityString: c => {
      var _c$data$toString, _c$data;
  
      return (_c$data$toString = (_c$data = c.data) === null || _c$data === void 0 ? void 0 : _c$data.toString()) !== null && _c$data$toString !== void 0 ? _c$data$toString : "false";
    },
    kind: GridCellKind.Boolean,
    needsHover: true,
    needsHoverPosition: true,
    render: a => drawBoolean(a, a.cell.data, a.cell.allowEdit),
    onDelete: c => ({ ...c,
      data: false
    }),
    onClick: (cell, x, y, bounds) => {
      if (Math.abs(x - bounds.width / 2) <= 10 && Math.abs(y - bounds.height / 2) <= 10) {
        return { ...cell,
          data: !cell.data
        };
      }
  
      return undefined;
    }
  };