import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Spin } from '@gravity-ui/uikit';
import { block } from "../../../utils/cn.js";
import "./Loader.css";
const b = block('loader');
export function Loader({ view = 'streaming', size = 's', className, qa }) {
    if (view === 'streaming') {
        return (_jsxs("div", { className: b({ size }, className), "data-qa": qa, children: [_jsx("div", { className: b('left') }), _jsx("div", { className: b('center') }), _jsx("div", { className: b('right') })] }));
    }
    return _jsx(Spin, { size: size, "data-qa": qa, className: b({ view }, className) });
}
//# sourceMappingURL=Loader.js.map
