UNPKG

@unstoppabledomains/ui-kit

Version:

A set of common Unstoppable Domains components

40 lines 1.89 kB
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } import SvgIcon from '@mui/material/SvgIcon'; import React from 'react'; import { makeStyles } from "../styles"; const useStyles = makeStyles()(() => ({ id: {} })); const CertifiedGradient = /*#__PURE__*/React.forwardRef((props, ref) => { const { classes } = useStyles(); const uuid = classes.id; const ids = Array.from({ length: 1 }).map((_, i) => `certified-gradient-${uuid}-${i}`); return /*#__PURE__*/React.createElement(SvgIcon, _extends({ viewBox: "0 0 20 20" }, props, { ref: ref }), /*#__PURE__*/React.createElement("path", { d: "M19.1673 10L17.134 7.675L17.4173 4.6L14.409 3.91667L12.834 1.25L10.0007 2.46667L7.16732 1.25L5.59232 3.90833L2.58398 4.58333L2.86732 7.66667L0.833984 10L2.86732 12.325L2.58398 15.4083L5.59232 16.0917L7.16732 18.75L10.0007 17.525L12.834 18.7417L14.409 16.0833L17.4173 15.4L17.134 12.325L19.1673 10ZM8.40898 13.9333L5.24232 10.7583L6.47565 9.525L8.40898 11.4667L13.284 6.575L14.5173 7.80833L8.40898 13.9333Z", fill: `url(#${ids[0]})` }), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", { id: ids[0], x1: "0.833984", y1: "18.75", x2: "18.3151", y2: "0.436488", gradientUnits: "userSpaceOnUse" }, /*#__PURE__*/React.createElement("stop", { stopColor: "#BD47F7" }), /*#__PURE__*/React.createElement("stop", { offset: "0.5208", stopColor: "#5D59F8" }), /*#__PURE__*/React.createElement("stop", { offset: "1", stopColor: "#38BDD1" })))); }); export default CertifiedGradient;