@ant-design/web3-icons
Version:
A collection of Web3 icons.
60 lines • 4.77 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__*/_jsx("defs", {
children: /*#__PURE__*/_jsxs("linearGradient", {
id: _id,
x1: "84.63",
y1: "295.19",
x2: "253.89",
y2: "2.04",
gradientUnits: "userSpaceOnUse",
children: [/*#__PURE__*/_jsx("stop", {
offset: "0",
stopColor: "#ffdc00"
}), /*#__PURE__*/_jsx("stop", {
offset: ".33",
stopColor: "#e58e2f"
}), /*#__PURE__*/_jsx("stop", {
offset: ".67",
stopColor: "#db2d72"
}), /*#__PURE__*/_jsx("stop", {
offset: "1",
stopColor: "#f0f"
})]
})
}), /*#__PURE__*/_jsx("path", {
d: "m79.56 290.47-22.92-39.7a5.28 5.28 0 0 1 0-4.65l25.45-44.07a5.24 5.24 0 0 1 4.06-2.35h50.89a5.26 5.26 0 0 1 4.07 2.35l25.45 44.07a5.32 5.32 0 0 1 0 4.7l-25.45 44.07a5.33 5.33 0 0 1-4 2.34H91.36a15.43 15.43 0 0 1-11.8-6.76Zm165.27-90.69L194.13 112a7.21 7.21 0 0 0-5.56-3.21H87.17a7.21 7.21 0 0 0-5.56 3.21l-50.7 87.82a7.18 7.18 0 0 0 0 6.42L45.77 232l26-45a8.22 8.22 0 0 1 6.43-3.72H145a8.22 8.22 0 0 1 6.43 3.72l33.41 57.86a8.24 8.24 0 0 1 0 7.43l-26 45h29.7a7.19 7.19 0 0 0 5.56-3.22l50.7-87.81a7.18 7.18 0 0 0 .03-6.48Zm92-58.09L259.06 6.93a15.37 15.37 0 0 0-12-6.93H91.45a15.37 15.37 0 0 0-12 6.93L1.65 141.69a15.36 15.36 0 0 0 0 13.85l17.83 30.88 51.7-89.56a10.14 10.14 0 0 1 7.94-4.58h117.41a10.14 10.14 0 0 1 7.94 4.58l58.71 101.69a10.13 10.13 0 0 1 0 9.16l-51.69 89.52h35.57a15.37 15.37 0 0 0 12-6.93l77.8-134.76a15.36 15.36 0 0 0 0-13.85Z",
fill: `url(#${_id})`
})]
});
};
SVGComponent.defaultProps = {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 338.51 297.23"
};
/** */
export const HexColorful = /*#__PURE__*/React.forwardRef((props, ref) => {
const {
getPrefixCls
} = React.useContext(ConfigProvider.ConfigContext);
const prefixCls = getPrefixCls('web3-icon-hex-colorful');
return /*#__PURE__*/_jsx(AntdIcon, {
...props,
className: classnames(prefixCls, props.className),
ref: ref,
component: eraseDefaultProps(SVGComponent)
});
});
HexColorful.displayName = 'HexColorful';