All files / app/offline page.tsx

100% Statements 19/19
100% Branches 2/2
100% Functions 2/2
100% Lines 19/19

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 271x         5x 5x 5x 5x 5x 5x 5x   5x 5x 5x 5x 1x 1x 5x   5x 5x 5x   5x  
'use client';
 
import { WifiOff } from 'lucide-react';
import { Button } from '@/components/ui/button';
 
export default function OfflinePage() {
  return (
    <div className="flex min-h-screen flex-col items-center justify-center p-4">
      <div className="text-center">
        <WifiOff className="mx-auto h-16 w-16 text-muted-foreground" />
        <h1 className="mt-6 text-2xl font-bold">You&apos;re Offline</h1>
        <p className="mt-2 text-muted-foreground">
          Please check your internet connection and try again.
        </p>
        <Button
          className="mt-6"
          onClick={() => {
            window.location.reload();
          }}
        >
          Try Again
        </Button>
      </div>
    </div>
  );
}