"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Th = void 0;
var _react = _interopRequireDefault(require("react"));
var _styledComponents = _interopRequireDefault(require("styled-components"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var StyledTh = _styledComponents.default.th.withConfig({
  displayName: "Th__StyledTh",
  componentId: "sc-1p4dh6v-0"
})(["color:", ";font-weight:normal;height:100%;padding:", "px ", "px;text-align:", ";width:", ";:first-child{padding-left:0;}:last-child{padding-right:0;}", ""], function (p) {
  return p.theme.color.label;
}, function (p) {
  return p.theme.spacing.unit(2);
}, function (p) {
  return p.theme.spacing.unit(1);
}, function (p) {
  return p.textAlign;
}, function (p) {
  return p.width;
}, function (p) {
  return p.ellipsis ? "white-space: nowrap;\n     overflow: hidden;\n     text-overflow: ellipsis;\n    " : '';
});
var Th = exports.Th = function Th(_ref) {
  var _ref$width = _ref.width,
    width = _ref$width === void 0 ? 'auto' : _ref$width,
    _ref$textAlign = _ref.textAlign,
    textAlign = _ref$textAlign === void 0 ? 'left' : _ref$textAlign,
    _ref$ellipsis = _ref.ellipsis,
    ellipsis = _ref$ellipsis === void 0 ? false : _ref$ellipsis,
    scope = _ref.scope,
    className = _ref.className,
    children = _ref.children;
  return _react.default.createElement(StyledTh, {
    width: width,
    textAlign: textAlign,
    ellipsis: ellipsis,
    scope: scope,
    className: className
  }, children);
};