28 lines
605 B
TypeScript
28 lines
605 B
TypeScript
import { Box } from './Box';
|
|
import { LoadingSpinner } from './LoadingSpinner';
|
|
import { Stack } from './Stack';
|
|
import { Text } from './Text';
|
|
|
|
interface AuthLoadingProps {
|
|
message?: string;
|
|
}
|
|
|
|
export function AuthLoading({ message = 'Authenticating...' }: AuthLoadingProps) {
|
|
return (
|
|
<Box
|
|
fullWidth
|
|
minHeight="100vh"
|
|
display="flex"
|
|
center
|
|
bg="bg-[#0f1115]"
|
|
>
|
|
<Stack align="center" gap={4}>
|
|
<LoadingSpinner size={10} />
|
|
<Text color="text-gray-400" weight="medium">
|
|
{message}
|
|
</Text>
|
|
</Stack>
|
|
</Box>
|
|
);
|
|
}
|