import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Text } from '@gravity-ui/uikit';
import { block } from "../../../utils/cn.js";
import "./Disclaimer.css";
const b = block('disclaimer');
/**
 * Disclaimer component displays informational or warning messages
 *
 * @param props - Component props
 * @returns React component
 */
export function Disclaimer(props) {
    const { className, qa, children, text, variant } = props;
    let textContent = null;
    if (text) {
        if (typeof text === 'string') {
            textContent = (_jsx(Text, { color: "secondary", variant: variant, children: text }));
        }
        else {
            textContent = text;
        }
    }
    else {
        textContent = null;
    }
    return (_jsxs("div", { className: b('container', className), "data-qa": qa, children: [textContent, children] }));
}
//# sourceMappingURL=Disclaimer.js.map
