-
Notifications
You must be signed in to change notification settings - Fork 55
/
IconSvg.js
30 lines (25 loc) · 1006 Bytes
/
IconSvg.js
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
import React from 'react';
// The svg path is from react-icons: https://github.com/gorangajic/react-icons/
const Svg = ({d}) => (
<svg viewBox="0 0 40 40" fill="currentColor" height="1em" width="1em" style={{verticalAlign: 'middle'}}>
<g><path d={d}/></g>
</svg>
);
const CloseIcon = () => (
<Svg d="m31.6 10.7l-9.3 9.3 9.3 9.3-2.3 2.3-9.3-9.3-9.3 9.3-2.3-2.3 9.3-9.3-9.3-9.3 2.3-2.3 9.3 9.3 9.3-9.3z"/>
);
const LeftIcon = () => (
<Svg d="m25.7 12.3l-7.7 7.7 7.7 7.7-2.3 2.3-10-10 10-10z"/>
);
const RightIcon = () => (
<Svg d="m16.6 10l10 10-10 10-2.3-2.3 7.7-7.7-7.7-7.7z"/>
);
const BulletIcon = () => (
<Svg d="m31.7 28.3h-23.4c-1.8 0-3.3 1.5-3.3 3.4s1.5 3.3 3.3 3.3h23.4c1.8 0 3.3-1.5 3.3-3.3s-1.5-3.4-3.3-3.4z m0-11.6h-23.4c-1.8 0-3.3 1.5-3.3 3.3s1.5 3.3 3.3 3.3h23.4c1.8 0 3.3-1.5 3.3-3.3s-1.5-3.3-3.3-3.3z m0-11.7h-23.4c-1.8 0-3.3 1.5-3.3 3.3s1.5 3.4 3.3 3.4h23.4c1.8 0 3.3-1.5 3.3-3.4s-1.5-3.3-3.3-3.3z"/>
);
export {
CloseIcon,
LeftIcon,
RightIcon,
BulletIcon
};