@ant-design/web3-icons
Version:
A collection of Web3 icons.
97 lines • 7.19 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 _id2 = useUniqueInlineId();
const _id = useUniqueInlineId();
return /*#__PURE__*/_jsxs("svg", {
...props,
children: [/*#__PURE__*/_jsxs("defs", {
children: [/*#__PURE__*/_jsxs("linearGradient", {
x1: "33.456%",
y1: "89.561%",
x2: "69.008%",
y2: "4.569%",
id: _id,
children: [/*#__PURE__*/_jsx("stop", {
stopColor: "#2F52FF",
offset: "0%"
}), /*#__PURE__*/_jsx("stop", {
stopColor: "#8658FF",
offset: "56.143%"
}), /*#__PURE__*/_jsx("stop", {
stopColor: "#E51DFF",
offset: "100%"
})]
}), /*#__PURE__*/_jsxs("linearGradient", {
x1: "50%",
y1: "0%",
x2: "50%",
y2: "100%",
id: _id2,
children: [/*#__PURE__*/_jsx("stop", {
stopColor: "#FFF",
stopOpacity: "0",
offset: "0%"
}), /*#__PURE__*/_jsx("stop", {
stopColor: "#FFF",
stopOpacity: ".724",
offset: "100%"
})]
})]
}), /*#__PURE__*/_jsxs("g", {
fill: "none",
fillRule: "evenodd",
children: [/*#__PURE__*/_jsx("rect", {
fill: `url(#${_id})`,
fillRule: "nonzero",
width: "40",
height: "40",
rx: "8"
}), /*#__PURE__*/_jsxs("g", {
transform: "translate(11.5 14)",
children: [/*#__PURE__*/_jsx("path", {
fill: `url(#${_id2})`,
d: "M0 0h17v13H0z"
}), /*#__PURE__*/_jsx("rect", {
fill: "#FFF",
y: "12",
width: "17",
height: "2",
rx: "1"
})]
}), /*#__PURE__*/_jsx("path", {
stroke: "#FFF",
strokeWidth: "2",
strokeLinecap: "round",
strokeLinejoin: "round",
d: "M13 7.997H7.992V13M13 34H7.992v-5.003M26.992 7.997H32V13M26.992 34H32v-5.003"
})]
})]
});
};
SVGComponent.defaultProps = {
viewBox: "0 0 40 40",
xmlns: "http://www.w3.org/2000/svg"
};
/** */
export const ScanColorful = /*#__PURE__*/React.forwardRef((props, ref) => {
const {
getPrefixCls
} = React.useContext(ConfigProvider.ConfigContext);
const prefixCls = getPrefixCls('web3-icon-scan-colorful');
return /*#__PURE__*/_jsx(AntdIcon, {
...props,
className: classnames(prefixCls, props.className),
ref: ref,
component: eraseDefaultProps(SVGComponent)
});
});
ScanColorful.displayName = 'ScanColorful';