@yandex/ui
Version:
Yandex UI components
14 lines (13 loc) • 583 B
JavaScript
import { __assign, __rest } from "tslib";
import './Text_weight_bold.css';
import { withBemMod } from '@bem-react/core';
import React from 'react';
import { cnText } from '../Text';
/**
* Модификатор, отвечающий за насыщенность текста.
* @param {ITextWeightBoldProps} props
*/
export var withWeightBold = withBemMod(cnText(), { weight: 'bold' }, function (WrappedComponent) { return (function (_a) {
var weight = _a.weight, props = __rest(_a, ["weight"]);
return React.createElement(WrappedComponent, __assign({}, props));
}); });