"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.LinearLoadIndicator = void 0;
var react_1 = __importDefault(require("react"));
var classnames_1 = __importDefault(require("classnames"));
var LinearProgress_1 = __importDefault(require("@mui/material/LinearProgress"));
var styles_1 = require("./styles");
var LinearLoadIndicator = function (_a) {
    var _b;
    var _c = _a.transparent, transparent = _c === void 0 ? false : _c, _d = _a.relativePosition, relativePosition = _d === void 0 ? false : _d, className = _a.className;
    var styles = (0, styles_1.useStyles)();
    return (react_1.default.createElement("div", { "data-reltio-id": "reltio-linear-load-indicator", className: (0, classnames_1.default)(styles.loadingOverlay, className, (_b = {},
            _b[styles.transparent] = transparent,
            _b[styles.relativePosition] = relativePosition,
            _b)) },
        react_1.default.createElement(LinearProgress_1.default, { color: "primary" })));
};
exports.LinearLoadIndicator = LinearLoadIndicator;
