import React from "react";
import { FullLoader } from "./FullLoader.js";
import { PopLoader } from "./PopLoader.js";
const Loading = (props) => {
    if (!props.data && props.isLoading) {
        return React.createElement(FullLoader, null);
    }
    const l = props.isLoading ? React.createElement(PopLoader, null) : null;
    return (React.createElement(React.Fragment, null,
        l,
        props.children));
};
Loading.displayName = "Loading";
export { Loading };
//# sourceMappingURL=Loading.js.map