import { jsx as _jsx } from "react/jsx-runtime";
import { twMerge } from "tailwind-merge";
import { AnimatedLoader } from "../animated-loader/animated-loader.js";
export const LoadingScreen = (props) => {
    const { showLoadingScreen, loadingComponent, size, className } = props;
    if (loadingComponent && showLoadingScreen) {
        return loadingComponent;
    }
    return (_jsx("div", { className: twMerge("absolute inset-0 z-10 flex items-center justify-center bg-white", !showLoadingScreen && "hidden", className), children: _jsx(AnimatedLoader, { size: size }) }));
};
//# sourceMappingURL=loading-screen.js.map