"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Loading = void 0;
const react_1 = __importDefault(require("react"));
const FullLoader_1 = require("./FullLoader");
const PopLoader_1 = require("./PopLoader");
const Loading = (props) => {
    if (!props.data && props.isLoading) {
        return react_1.default.createElement(FullLoader_1.FullLoader, null);
    }
    const l = props.isLoading ? react_1.default.createElement(PopLoader_1.PopLoader, null) : null;
    return (react_1.default.createElement(react_1.default.Fragment, null,
        l,
        props.children));
};
exports.Loading = Loading;
Loading.displayName = "Loading";
//# sourceMappingURL=Loading.js.map