-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLostConnectionModal.tsx
More file actions
30 lines (28 loc) · 1.28 KB
/
LostConnectionModal.tsx
File metadata and controls
30 lines (28 loc) · 1.28 KB
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
import { Dialog, DialogContent, DialogTitle } from '@/lib/components/ui/Modal';
import { VisuallyHidden } from '@radix-ui/react-visually-hidden';
import { Button } from '@/lib/components/ui/Button';
export type LostConnectionModalProps = {
open: boolean;
onOpenChange: (open: boolean) => void;
};
export function LostConnectionModal({ open, onOpenChange }: LostConnectionModalProps) {
return (
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="h-[234px] w-[381px] gap-4" showCloseButton={true}>
<VisuallyHidden>
<DialogTitle>Network Disconnected</DialogTitle>
</VisuallyHidden>
<div className="flex flex-col items-center gap-6 text-center">
<p className="text-sarge-gray-800 mt-2 text-base leading-tight font-medium tracking-wide">
You seem to be having issues with your connection.
</p>
<p>
If you disconnect again during this exam, your current progress will be
auto-submitted.
</p>
<Button className="px-4 py-2">I understand</Button>
</div>
</DialogContent>
</Dialog>
);
}