@adminium/ui
Version:
Arco Design React UI Library.
49 lines (44 loc) • 1.62 kB
JavaScript
import _extends from "@babel/runtime/helpers/extends";
import React, { useContext } from 'react';
import { IconContext } from '../context';
function IconThumbUpFillComponent(iconProps, ref) {
const _useContext = useContext(IconContext),
_useContext$prefixCls = _useContext.prefixCls,
prefixCls = _useContext$prefixCls === void 0 ? 'arco' : _useContext$prefixCls;
const spin = iconProps.spin,
className = iconProps.className;
const props = {
"aria-hidden": true,
focusable: false,
ref,
...iconProps,
className: `${className ? className + ' ' : ''}${prefixCls}-icon ${prefixCls}-icon-thumb-up-fill`
};
if (spin) {
props.className = `${props.className} ${prefixCls}-icon-loading`;
}
delete props.spin;
delete props.isIcon;
return /*#__PURE__*/React.createElement("svg", _extends({
fill: "none",
stroke: "currentColor",
strokeWidth: "4",
viewBox: "0 0 48 48"
}, props), /*#__PURE__*/React.createElement("path", {
fill: "currentColor",
fillRule: "evenodd",
stroke: "none",
d: "M5 43V17h4v26H5Z",
clipRule: "evenodd"
}), /*#__PURE__*/React.createElement("path", {
fill: "currentColor",
stroke: "none",
d: "M27.1 4.463a2 2 0 0 0-2.83.364L15.036 17H12v26h23.576a2 2 0 0 0 1.89-1.346l5.697-19.346c.899-2.598-1.03-5.308-3.78-5.308h-10.57l2.422-5.448a4 4 0 0 0-1.184-4.77L27.1 4.462Z"
}));
}
const IconThumbUpFill = /*#__PURE__*/React.forwardRef(IconThumbUpFillComponent);
IconThumbUpFill.defaultProps = {
isIcon: true
};
IconThumbUpFill.displayName = 'IconThumbUpFill';
export default IconThumbUpFill;