All files / src/app/auth/unauthorized page.tsx

100% Statements 1/1
100% Branches 0/0
100% Functions 1/1
100% Lines 1/1

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        4x                                      
import Link from "next/link";
import { ShieldCheck } from "lucide-react";
 
export default function UnauthorizedPage() {
  return (
    <div className="min-h-[60vh] flex items-center justify-center">
      <div className="bg-[var(--surface-2)] rounded-lg p-8 max-w-md w-full mx-4 text-center">
        <ShieldCheck size={48} className="mx-auto mb-4 text-red-400" />
        <h1 className="text-2xl font-bold text-white mb-2">Access Denied</h1>
        <p className="text-[var(--text-secondary)] mb-6">
          You do not have the required role to access this resource. Contact
          your dataspace administrator to request access.
        </p>
        <Link
          href="/"
          className="inline-block px-4 py-2 bg-gray-700 hover:bg-gray-600 text-white rounded-lg font-medium transition-colors"
        >
          Return to Home
        </Link>
      </div>
    </div>
  );
}