"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.FooterRow = void 0;
var _react = _interopRequireDefault(require("react"));
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _Row = _interopRequireDefault(require("./Row"));
var _excluded = ["className", "hideSeparator", "separatorColor", "children"];
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
var StyledRow = (0, _styledComponents.default)(_Row.default).withConfig({
  displayName: "FooterRow__StyledRow",
  componentId: "sc-kzo5yh-0"
})(["", " border-bottom:0;"], function (p) {
  return !p.$hideSeparator ? "border-top: 1px solid ".concat(p.$separatorColor(p.theme), ";") : '';
});
var FooterRow = exports.FooterRow = function FooterRow(_ref) {
  var className = _ref.className,
    _ref$hideSeparator = _ref.hideSeparator,
    hideSeparator = _ref$hideSeparator === void 0 ? false : _ref$hideSeparator,
    _ref$separatorColor = _ref.separatorColor,
    separatorColor = _ref$separatorColor === void 0 ? function (theme) {
      return theme.color.text;
    } : _ref$separatorColor,
    children = _ref.children,
    htmlProps = _objectWithoutProperties(_ref, _excluded);
  return _react.default.createElement(StyledRow, _extends({
    className: className,
    hoverHighlight: false,
    $hideSeparator: hideSeparator,
    $separatorColor: separatorColor,
    rowType: "footer"
  }, htmlProps), children);
};