-
Notifications
You must be signed in to change notification settings - Fork 882
/
sparkles-icon.js
37 lines (35 loc) · 1.15 KB
/
sparkles-icon.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import propTypes from "prop-types";
import "./sparkles-icon.css";
/**
* The AI Assessment Fixes button icon.
* @param {boolean} pressed Whether the button is pressed.
* @returns {JSX.Element} The AI Assessment Fixes button icon.
*/
export const SparklesIcon = ({ pressed = false }) => {
const gradientStroke = `url( "#paint0_linear_1208_188" )`;
return (
<>
<svg xmlns="http:https://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none" >
<path
d="M3.33284 2V4.66667M1.99951 3.33333H4.66618M3.99951 11.3333V14M2.66618 12.6667H5.33284M8.66618 2L10.19 6.57143L13.9995 8L10.19 9.42857L8.66618 14L7.14237 9.42857L3.33284 8L7.14237 6.57143L8.66618 2Z"
strokeLinecap="round"
strokeLinejoin="round"
stroke={ pressed ? "white" : gradientStroke }
strokeWidth="1.33333"
/>
<defs>
<linearGradient
id="paint0_linear_1208_188" x1="0" y1="0" x2="16" y2="16"
gradientUnits="userSpaceOnUse"
>
<stop offset="0%" stopColor="#A61E69" />
<stop offset="100%" stopColor="#3B82F6" />
</linearGradient>
</defs>
</svg>
</>
);
};
SparklesIcon.propTypes = {
pressed: propTypes.bool,
};