"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LoaderSize = void 0;
exports.LoaderSize = {
    xs: 'xs',
    sm: 'sm'
};
const Loader = (text, size) => {
    const withText = !!text;
    let mainClass = 'theme_xbox_lg';
    if (size) {
        mainClass += size;
    }
    if (withText) {
        mainClass += ' theme_xbox_with_text';
    }
    let html;
    html = '<div class="loader">';
    html += `<div class='${mainClass}'>`;
    html += '<div class="pace_activity"></div>';
    if (withText) {
        html += `<span>${text}</span>`;
    }
    html += '</div>';
    html += '</div>';
    return html;
};
exports.default = Loader;
