"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.LoadingOverlay = void 0;
var _reactNative = require("react-native");
var _styles = require("./styles");
const LoadingOverlay = ({
  isLoading,
  loadingText
}) => {
  if (!isLoading) {
    return null;
  }
  return /*#__PURE__*/React.createElement(_reactNative.View, {
    style: _styles.styles.overlay
  }, /*#__PURE__*/React.createElement(_reactNative.View, {
    style: _styles.styles.indicatorContainer
  }, /*#__PURE__*/React.createElement(_reactNative.ActivityIndicator, {
    size: "large",
    color: "#fff"
  }), loadingText && /*#__PURE__*/React.createElement(_reactNative.Text, {
    style: _styles.styles.loadingText
  }, loadingText)));
};
exports.LoadingOverlay = LoadingOverlay;
//# sourceMappingURL=index.js.map