Skip to content

Commit c3c7f2c

Browse files
committed
Add trash icon
1 parent 324cec4 commit c3c7f2c

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

src/components/Icon.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const NAMES = [
5050
"tick-small",
5151
"tick",
5252
"time",
53+
"trash",
5354
"triangle-down",
5455
"triangle-up",
5556
"twitter",

src/icons/trash.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import React from "react";
2+
import PropTypes from "prop-types";
3+
4+
function Trash({ size, primaryColor, testId }) {
5+
return (
6+
<svg
7+
css={{
8+
display: "block",
9+
}}
10+
width={size}
11+
height={size}
12+
viewBox="0 0 32 32"
13+
focusable="false"
14+
role="img"
15+
aria-label="Trash"
16+
data-testid={testId}
17+
>
18+
<path
19+
d="M23 26H9V10h2v13.428a1 1 0 002 0V10h2v13.428a1 1 0 002 0V10h2v13.428a1 1 0 002 0V10h2v16zM14 8h4V6h-4v2zm12 0h-6V6a2 2 0 00-2-2h-4a2 2 0 00-2 2v2H6a1 1 0 000 2h1v16a2 2 0 002 2h14a2 2 0 002-2V10h1a1 1 0 100-2z"
20+
fill={primaryColor}
21+
fillRule="evenodd"
22+
/>
23+
</svg>
24+
);
25+
}
26+
27+
Trash.propTypes = {
28+
size: PropTypes.string.isRequired,
29+
primaryColor: PropTypes.string.isRequired,
30+
testId: PropTypes.string,
31+
};
32+
33+
export default Trash;

0 commit comments

Comments
 (0)