add cross icon

This commit is contained in:
Viktor Rådberg
2023-09-26 15:45:43 +02:00
parent 25302913d5
commit de7bde1b2b
3 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
import PropTypes from 'prop-types';
import { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
size?: string;
}
const Cross = ({
title,
titleId,
...props
}: SVGProps<SVGSVGElement> & SVGRProps) => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width={props.size || 16}
height={props.size || 16}
viewBox="0 0 524 524"
aria-labelledby={titleId}
{...props}
>
{title ? <title id={titleId}>{title}</title> : null}
<path
fill="currentColor"
d="M85.8 34.4c-5.3 1.9-9.2 5.3-30 26.3C35.9 80.8 33 84.8 33 93c0 2.5.9 6.4 1.9 8.6 1.2 2.7 27.7 32.1 74.5 82.7 39.9 43.3 72.6 79.1 72.6 79.7 0 .6-32.3 35.2-71.7 77-48.5 51.3-72.7 77.7-74.6 81.1-3.4 6.4-3.5 11.7-.3 18.4 3.3 6.8 42 45.5 48.6 48.4 6.4 2.9 12.7 2.7 18.8-.7 3.3-1.7 31.6-27.6 81.3-74.5 42-39.4 76.7-71.6 77.1-71.5.4.2 35.5 32.5 77.9 71.8 42.4 39.3 79.2 72.7 81.8 74.2 3.2 1.9 6 2.8 9.1 2.8 10.1 0 10.9-.6 34.9-24.3 14.2-14.1 23-23.7 24.2-26.2 2.4-5.1 2.4-12.8 0-18.1-1.2-2.6-27.1-30.8-74.5-81.2-40-42.5-72.6-77.6-72.4-78.1.2-.4 32.5-34.7 71.8-76.1 39.3-41.4 72.5-76.7 73.8-78.4 4.5-6.3 4.4-17.9-.1-24.2-5.1-7.2-43.3-46.7-46.9-48.5-2.1-1.1-5.8-2.2-8.2-2.5-9.6-1.4-5.3-5.2-158.3 138.2L262.2 183l-78.4-73.1c-49.6-46.5-79.8-73.9-82.3-75-4.7-2.2-10.5-2.3-15.7-.5z"
/>
</svg>
);
};
Cross.propTypes = {
title: PropTypes.string,
};
export default Cross;

View File

@@ -1,5 +1,6 @@
export { default as Cog } from './Cog';
export { default as CommanderTax } from './CommanderTax';
export { default as Cross } from './Cross';
export { default as Energy } from './Energy';
export { default as Exit } from './Exit';
export { default as Experience } from './Experience';

21
src/Icons/svgs/Cross.svg Normal file
View File

@@ -0,0 +1,21 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="524.000000pt" height="524.000000pt" viewBox="0 0 524.000000 524.000000"
preserveAspectRatio="xMidYMid meet">
<g transform="translate(0.000000,524.000000) scale(0.100000,-0.100000)"
fill="currentColor" stroke="none">
<path d="M858 4896 c-53 -19 -92 -53 -300 -263 -199 -201 -228 -241 -228 -323
0 -25 9 -64 19 -86 12 -27 277 -321 745 -827 399 -433 726 -791 726 -797 0 -6
-323 -352 -717 -770 -485 -513 -727 -777 -746 -811 -34 -64 -35 -117 -3 -184
33 -68 420 -455 486 -484 64 -29 127 -27 188 7 33 17 316 276 813 745 420 394
767 716 771 715 4 -2 355 -325 779 -718 424 -393 792 -727 818 -742 32 -19 60
-28 91 -28 101 0 109 6 349 243 142 141 230 237 242 262 24 51 24 128 0 181
-12 26 -271 308 -745 812 -400 425 -726 776 -724 781 2 4 325 347 718 761 393
414 725 767 738 784 45 63 44 179 -1 242 -51 72 -433 467 -469 485 -21 11 -58
22 -82 25 -96 14 -53 52 -1583 -1382 l-121 -114 -784 731 c-496 465 -798 739
-823 750 -47 22 -105 23 -157 5z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB