"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

var _react = _interopRequireDefault(require("react"));

var _propTypes = _interopRequireDefault(require("prop-types"));

var _ = require("./..");

// Style
var classes = {};
/* istanbul ignore next */

if (typeof window !== 'undefined') classes = require("./style.module.scss");

var ModalFooter = function ModalFooter(_ref) {
  var children = _ref.children,
      className = _ref.className,
      attrs = (0, _objectWithoutProperties2["default"])(_ref, ["children", "className"]);
  return /*#__PURE__*/_react["default"].createElement(_.Flex, (0, _extends2["default"])({
    className: [classes['Modal-Footer'], className || ''].join(' '),
    justify: "end",
    tag: "footer"
  }, attrs), children);
};

ModalFooter.propTypes = {
  children: _propTypes["default"].any,
  className: _propTypes["default"].node
};
var _default = ModalFooter;
exports["default"] = _default;