"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Loader = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const styles_1 = require("./styles");
const Loader = ({ isLoading = false, isDisabled = false, isVisibleDivider = true, }) => {
    return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(isLoading || isDisabled) && (0, jsx_runtime_1.jsx)(styles_1.Backdrop, {}), (0, jsx_runtime_1.jsxs)(styles_1.LoaderWrapper, { children: [isLoading && (0, jsx_runtime_1.jsx)(styles_1.StyledLinearProgress, {}), !isLoading && isVisibleDivider && (0, jsx_runtime_1.jsx)(styles_1.StyledDivider, {})] })] }));
};
exports.Loader = Loader;
