1 |
67b916af
|
Fantič
|
import { Box, HStack, Heading, Spinner } from "native-base"
|
2 |
852de08e
|
Fantič
|
import React from "react"
|
3 |
|
|
|
4 |
|
|
|
5 |
a7a9a204
|
Fantič
|
interface LoadingBoxProps {
|
6 |
852de08e
|
Fantič
|
text: string
|
7 |
|
|
}
|
8 |
|
|
|
9 |
a7a9a204
|
Fantič
|
const LoadingBox = (props: LoadingBoxProps) => {
|
10 |
039c5147
|
Schwobik
|
const { text } = props
|
11 |
852de08e
|
Fantič
|
|
12 |
|
|
return (
|
13 |
67b916af
|
Fantič
|
<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 |
039c5147
|
Schwobik
|
)
|
22 |
852de08e
|
Fantič
|
}
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
export default LoadingBox
|