"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.Table = void 0;
var _react = _interopRequireDefault(require("react"));
var _styledComponents = _interopRequireDefault(require("styled-components"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var StyledTable = _styledComponents.default.table.withConfig({
  displayName: "Table__StyledTable",
  componentId: "sc-vgcwcw-0"
})(["width:", ";table-layout:", ";border-collapse:collapse;color:", ";"], function (p) {
  return p.width;
}, function (p) {
  return p.tableLayout ? 'fixed' : 'auto';
}, function (p) {
  return p.theme.color.text;
});
var Table = exports.Table = function Table(_ref) {
  var children = _ref.children,
    _ref$tableLayout = _ref.tableLayout,
    tableLayout = _ref$tableLayout === void 0 ? 'fixed' : _ref$tableLayout,
    _ref$width = _ref.width,
    width = _ref$width === void 0 ? '100%' : _ref$width;
  return _react.default.createElement(StyledTable, {
    tableLayout: tableLayout,
    width: width
  }, children);
};
var _default = exports.default = Table;