We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3f23cc commit 7b54979Copy full SHA for 7b54979
2 files changed
src/icons/Warning/WarningIcon.tsx
@@ -0,0 +1,24 @@
1
+import { DEFAULT_HEIGHT, DEFAULT_WIDTH } from '../../constants/constants';
2
+import { IconProps } from '../types';
3
+
4
+export const WarningIcon = ({
5
+ width = DEFAULT_WIDTH,
6
+ height = DEFAULT_HEIGHT,
7
+ ...props
8
+}: IconProps): JSX.Element => {
9
+ return (
10
+ <svg
11
+ aria-hidden="true"
12
+ viewBox="0 0 24 24"
13
+ data-testid="WarningIcon"
14
+ width={width}
15
+ height={height}
16
+ xmlns="http://www.w3.org/2000/svg"
17
+ {...props}
18
+ >
19
+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"></path>
20
+ </svg>
21
+ );
22
+};
23
24
+export default WarningIcon;
src/icons/Warning/index.ts
@@ -0,0 +1 @@
+export { WarningIcon } from './WarningIcon';
0 commit comments