@yandex/ui
Version:
Yandex UI components
17 lines (16 loc) • 848 B
JavaScript
import { __assign, __rest } from "tslib";
import React from 'react';
import { withBemMod } from '@bem-react/core';
import { cnIcon } from '../Icon';
import './Icon_glyph.css';
import './Icon_glyph_carets-v.css';
/**
* Модификатор, отвечающий за символ иконки.
* @param {IIconGlyphProps} props
*/
export var withGlyphCaretsV = withBemMod(cnIcon(), { glyph: 'carets-v' }, function (Icon) { return function (_a) {
var className = _a.className, props = __rest(_a, ["className"]);
return (React.createElement(Icon, __assign({}, props, { className: cnIcon({ hasGlyph: true }, [className]) }),
React.createElement("svg", { focusable: "false", xmlns: "http://www.w3.org/2000/svg", width: "8", height: "14" },
React.createElement("path", { d: "M4 0l4 6H0l4-6zm0 14l4-6H0l4 6z" }))));
}; });