forked from ademilter/twitter-web-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
30 lines (29 loc) · 770 Bytes
/
index.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'
function Loading({ size = 30, stroke = 2 }) {
return (
<svg
width={size}
height={size}
viewBox="0 0 38 38"
xmlns="http://www.w3.org/2000/svg"
stroke="rgba(29, 161, 242, 1)"
>
<g fill="none" fillRule="evenodd">
<g transform="translate(1 1)" strokeWidth={stroke}>
<circle strokeOpacity=".3" cx="18" cy="18" r="18" />
<path d="M36 18c0-9.94-8.06-18-18-18">
<animateTransform
attributeName="transform"
type="rotate"
from="0 18 18"
to="360 18 18"
dur="1s"
repeatCount="indefinite"
/>
</path>
</g>
</g>
</svg>
)
}
export default Loading