"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ExpandArea = void 0;
var _react = _interopRequireDefault(require("react"));
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _ = require("../../../..");
var _2 = require(".");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var StyledBox = (0, _styledComponents.default)(_.Box).withConfig({
  displayName: "ExpandArea__StyledBox",
  componentId: "sc-1nbgdax-0"
})(["background:", ";"], function (p) {
  return p.theme.color.tableRowBackground;
});
var ExpandArea = exports.ExpandArea = function ExpandArea(_ref) {
  var expandChildren = _ref.expandChildren,
    expandItems = _ref.expandItems;
  return _react.default.createElement(StyledBox, {
    px: 5,
    pb: 2,
    md: {
      px: 5,
      pt: 5,
      pb: 0
    },
    role: "cell"
  }, expandItems && expandItems.length ? _react.default.createElement(_2.ExpandItems, {
    items: expandItems
  }) : null, expandChildren && _react.default.createElement(_.Box, {
    pt: 2,
    md: {
      px: 5,
      pt: 0,
      pb: 5
    }
  }, expandChildren));
};