"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Thead = exports.Tbody = exports.Table = void 0;
var _react = _interopRequireDefault(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
var _Styles = require("./Styles");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Table = exports.Table = function Table(_ref) {
  var children = _ref.children,
    className = _ref.className,
    wrapperClassName = _ref.wrapperClassName,
    _ref$striped = _ref.striped,
    striped = _ref$striped === void 0 ? false : _ref$striped,
    innerRef = _ref.innerRef;
  return /*#__PURE__*/_react.default.createElement(_Styles.StyledTableWrapper, {
    className: (0, _classnames.default)("c-table__wrap", wrapperClassName)
  }, /*#__PURE__*/_react.default.createElement(_Styles.StyledTable, {
    ref: innerRef,
    className: (0, _classnames.default)("c-table", className),
    $striped: striped
  }, children));
};
Table.displayName = "Table";
var Thead = exports.Thead = function Thead(_ref2) {
  var children = _ref2.children,
    className = _ref2.className,
    _ref2$headerVariant = _ref2.headerVariant,
    headerVariant = _ref2$headerVariant === void 0 ? "primary" : _ref2$headerVariant;
  return /*#__PURE__*/_react.default.createElement(_Styles.StyledTableHead, {
    $headerVariant: headerVariant,
    className: (0, _classnames.default)("c-table__head", className)
  }, children);
};
Thead.displayName = "Thead";
var Tbody = exports.Tbody = function Tbody(_ref3) {
  var children = _ref3.children,
    className = _ref3.className;
  return /*#__PURE__*/_react.default.createElement(_Styles.StyledTableBody, {
    className: (0, _classnames.default)("c-table__body", className)
  }, children);
};
Tbody.displayName = "Tbody";
//# sourceMappingURL=Table.js.map