-
Notifications
You must be signed in to change notification settings - Fork 124
Expand file tree
/
Copy pathalert-octagon.js
More file actions
39 lines (35 loc) · 929 Bytes
/
alert-octagon.js
File metadata and controls
39 lines (35 loc) · 929 Bytes
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
38
39
import React from 'react';
import PropTypes from 'prop-types';
const AlertOctagon = props => {
const { children, color, size, ...otherProps } = props;
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width={size}
height={size}
viewBox="0 0 24 24"
fill="none"
stroke={color}
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
{...otherProps}
>
{children}
<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2" />
<line x1="12" y1="8" x2="12" y2="12" />
<line x1="12" y1="16" x2="12" y2="16" />
</svg>
);
};
AlertOctagon.propTypes = {
children: PropTypes.object,
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};
AlertOctagon.defaultProps = {
children: null,
color: 'currentColor',
size: '24',
};
export default AlertOctagon;