mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
1import React from 'react'
2import {View} from 'react-native'
3
4import {atoms as a, flatten, useTheme} from '#/alf'
5import {Props, useCommonSVGProps} from '#/components/icons/common'
6import {Loader_Stroke2_Corner0_Rounded as Icon} from '#/components/icons/Loader'
7
8export function Loader(props: Props) {
9 const t = useTheme()
10 const common = useCommonSVGProps(props)
11
12 return (
13 <View
14 style={[
15 a.relative,
16 a.justify_center,
17 a.align_center,
18 {width: common.size, height: common.size},
19 ]}>
20 {/* css rotation animation - /bskyweb/templates/base.html */}
21 <div className="rotate-500ms">
22 <Icon
23 {...props}
24 style={[
25 a.absolute,
26 a.inset_0,
27 t.atoms.text_contrast_high,
28 flatten(props.style),
29 ]}
30 />
31 </div>
32 </View>
33 )
34}