"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Loader = Loader;
const jsx_runtime_1 = require("react/jsx-runtime");
const uikit_1 = require("@gravity-ui/uikit");
const cn_1 = require("../../../utils/cn.js");
require("./Loader.css");
const b = (0, cn_1.block)('loader');
function Loader({ view = 'streaming', size = 's', className, qa }) {
    if (view === 'streaming') {
        return ((0, jsx_runtime_1.jsxs)("div", { className: b({ size }, className), "data-qa": qa, children: [(0, jsx_runtime_1.jsx)("div", { className: b('left') }), (0, jsx_runtime_1.jsx)("div", { className: b('center') }), (0, jsx_runtime_1.jsx)("div", { className: b('right') })] }));
    }
    return (0, jsx_runtime_1.jsx)(uikit_1.Spin, { size: size, "data-qa": qa, className: b({ view }, className) });
}
//# sourceMappingURL=Loader.js.map
