Skip to content

Commit 7b54979

Browse files
committed
feat: add warning icon
Signed-off-by: amitamrutiya <amitamrutiya2210@gmail.com>
1 parent d3f23cc commit 7b54979

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

src/icons/Warning/WarningIcon.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { WarningIcon } from './WarningIcon';

0 commit comments

Comments
 (0)