UNPKG

@yandex/ui

Version:

Yandex UI components

14 lines (13 loc) 591 B
import { __assign, __rest } from "tslib"; import './Text_weight_medium.css'; import { withBemMod } from '@bem-react/core'; import React from 'react'; import { cnText } from '../Text'; /** * Модификатор, отвечающий за насыщенность текста. * @param {ITextWeightMediumProps} props */ export var withWeightMedium = withBemMod(cnText(), { weight: 'medium' }, function (WrappedComponent) { return (function (_a) { var weight = _a.weight, props = __rest(_a, ["weight"]); return React.createElement(WrappedComponent, __assign({}, props)); }); });