text: "use strict";
  
  function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = void 0;
  
  var _react = _interopRequireDefault(require("react"));
  
  var _DataTable = _interopRequireWildcard(require("../../DataTable"));
  
  var _shared = require("./shared");
  
  function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
  
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
  
  var _default = function _default(props) {
    return /*#__PURE__*/_react.default.createElement(_DataTable.default, _extends({
      rows: _shared.initialRows,
      headers: _shared.headers
    }, props, {
      render: function render(_ref) {
        var rows = _ref.rows,
            headers = _ref.headers,
            getHeaderProps = _ref.getHeaderProps,
            getRowProps = _ref.getRowProps,
            getSelectionProps = _ref.getSelectionProps,
            getTableProps = _ref.getTableProps,
            getTableContainerProps = _ref.getTableContainerProps;
        return /*#__PURE__*/_react.default.createElement(_DataTable.TableContainer, _extends({
          title: "DataTable",
          description: "With selection"
        }, getTableContainerProps()), /*#__PURE__*/_react.default.createElement(_DataTable.Table, getTableProps(), /*#__PURE__*/_react.default.createElement(_DataTable.TableHead, null, /*#__PURE__*/_react.default.createElement(_DataTable.TableRow, null, /*#__PURE__*/_react.default.createElement(_DataTable.TableSelectAll, getSelectionProps()), headers.map(function (header) {
          return /*#__PURE__*/_react.default.createElement(_DataTable.TableHeader, getHeaderProps({
            header: header
          }), header.header);
        }))), /*#__PURE__*/_react.default.createElement(_DataTable.TableBody, null, rows.map(function (row) {
          return /*#__PURE__*/_react.default.createElement(_DataTable.TableRow, getRowProps({
            row: row
          }), /*#__PURE__*/_react.default.createElement(_DataTable.TableSelectRow, getSelectionProps({
            row: row
          })), row.cells.map(function (cell) {
            return /*#__PURE__*/_react.default.createElement(_DataTable.TableCell, {
              key: cell.id
            }, cell.value);
          }));
        }))));
      }
    }));
  };
  
  exports.default = _default;