1
|
import { Box, HStack, Heading, Spinner } from "native-base"
|
2
|
import React from "react"
|
3
|
|
4
|
|
5
|
interface LoadingBoxProps {
|
6
|
text: string
|
7
|
}
|
8
|
|
9
|
const LoadingBox = (props: LoadingBoxProps) => {
|
10
|
const { text } = props
|
11
|
|
12
|
return (
|
13
|
<Box width="100%" marginTop="20" height="8">
|
14
|
<HStack alignItems="center" flex="1" justifyContent="center">
|
15
|
<Spinner />
|
16
|
<Heading color="primary.400" fontSize="md">
|
17
|
{text}
|
18
|
</Heading>
|
19
|
</HStack>
|
20
|
</Box>
|
21
|
)
|
22
|
}
|
23
|
|
24
|
|
25
|
export default LoadingBox
|