"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Td = void 0;
var _react = _interopRequireDefault(require("react"));
var _styledComponents = _interopRequireDefault(require("styled-components"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var StyledTd = _styledComponents.default.td.withConfig({
  displayName: "Td__StyledTd",
  componentId: "sc-1r6yxrk-0"
})(["height:100%;padding:", "px ", "px;text-align:", ";&:first-child{padding-left:0;}&:last-child{padding-right:0;}", ""], 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.ellipsis ? "white-space: nowrap;\n     overflow: hidden;\n     text-overflow: ellipsis;\n    " : '';
});
var Td = exports.Td = function Td(_ref) {
  var _ref$textAlign = _ref.textAlign,
    textAlign = _ref$textAlign === void 0 ? 'left' : _ref$textAlign,
    _ref$ellipsis = _ref.ellipsis,
    ellipsis = _ref$ellipsis === void 0 ? false : _ref$ellipsis,
    className = _ref.className,
    children = _ref.children;
  return _react.default.createElement(StyledTd, {
    textAlign: textAlign,
    ellipsis: ellipsis,
    className: className
  }, children);
};