forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloading-state.tsx
More file actions
30 lines (27 loc) · 958 Bytes
/
Copy pathloading-state.tsx
File metadata and controls
30 lines (27 loc) · 958 Bytes
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
interface LoadingStateProps {
isRedirecting: boolean;
isSubmitting: boolean;
}
export default function LoadingState({ isRedirecting, isSubmitting }: LoadingStateProps) {
return (
<div className="flex min-h-screen items-center justify-center bg-[#0B0F17] text-white">
<div className="text-center">
<div className="mx-auto mb-6 h-8 w-8 animate-spin rounded-full border-2 border-gray-600 border-t-white"></div>
<p className="text-lg font-medium text-white">
{isRedirecting
? 'App submitted successfully!'
: isSubmitting
? 'Submitting your app...'
: 'Loading...'}
</p>
{(isSubmitting || isRedirecting) && (
<p className="mt-2 text-sm text-gray-400">
{isRedirecting
? 'Redirecting to homepage...'
: 'Please wait while we process your submission'}
</p>
)}
</div>
</div>
);
}