@ant-design/web3-icons
Version:
A collection of Web3 icons.
61 lines • 2.8 kB
JavaScript
import { useUniqueInlineId } from '@inline-svg-unique-id/react';
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
import * as React from 'react';
import AntdIcon from '@ant-design/icons';
import { ConfigProvider } from 'antd';
import classnames from 'classnames';
import { eraseDefaultProps } from "../utils";
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
var SVGComponent = function SVGComponent(props) {
const _id = useUniqueInlineId();
return /*#__PURE__*/_jsxs("svg", {
...props,
children: [/*#__PURE__*/_jsxs("linearGradient", {
id: _id,
gradientUnits: "userSpaceOnUse",
x1: "48.215",
y1: "34.676",
x2: "171.281",
y2: "189.785",
children: [/*#__PURE__*/_jsx("stop", {
offset: "0",
stopColor: "#771a4e"
}), /*#__PURE__*/_jsx("stop", {
offset: ".5",
stopColor: "#5e1953"
}), /*#__PURE__*/_jsx("stop", {
offset: ".875",
stopColor: "#430f4e"
}), /*#__PURE__*/_jsx("stop", {
offset: "1",
stopColor: "#3a0c4c"
})]
}), /*#__PURE__*/_jsx("path", {
d: "M.3 0h198v198H.3z",
fill: `url(#${_id})`
}), /*#__PURE__*/_jsx("path", {
d: "M51.8 40v131l28-15V56l40 23-30 16v33l67 46v-31l-41-29 34-18V64l-70-39z",
fill: "#fff"
})]
});
};
SVGComponent.defaultProps = {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 198 198"
};
/** */
export const RevColorful = /*#__PURE__*/React.forwardRef((props, ref) => {
const {
getPrefixCls
} = React.useContext(ConfigProvider.ConfigContext);
const prefixCls = getPrefixCls('web3-icon-rev-colorful');
return /*#__PURE__*/_jsx(AntdIcon, {
...props,
className: classnames(prefixCls, props.className),
ref: ref,
component: eraseDefaultProps(SVGComponent)
});
});
RevColorful.displayName = 'RevColorful';