"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.InitialLoader = InitialLoader;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _designSystem = require("@wix/design-system");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/InitialLoader/InitialLoader.tsx";
function InitialLoader(props) {
  const {
    dataHook,
    size,
    state,
    minHeight = '300px',
    ...rest
  } = props;
  return /*#__PURE__*/_react.default.createElement(_designSystem.Box, (0, _extends2.default)({
    backgroundColor: "D80",
    align: "center",
    verticalAlign: "middle",
    borderRadius: "8px",
    minHeight: minHeight,
    height: state.internalScroll ? '100%' : undefined
  }, rest, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 16,
      columnNumber: 5
    }
  }), /*#__PURE__*/_react.default.createElement(_designSystem.Loader, {
    dataHook: dataHook,
    size: size,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 25,
      columnNumber: 7
    }
  }));
}
//# sourceMappingURL=InitialLoader.js.map