"use client"; import Link from "next/link"; import { useSearchParams } from "next/navigation"; import { Suspense } from "react"; function UnauthorizedContent() { const searchParams = useSearchParams(); const attemptedUrl = searchParams.get('from'); return (
You don't have permission to access this area. Admin privileges are required.
{attemptedUrl && (Attempted to access: {attemptedUrl}
)}Loading...
}>