import Link from "next/link"; import { headers } from "next/headers"; import { Button } from "~/components/ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "~/components/ui/card"; import { auth } from "~/lib/auth"; export default async function UnauthorizedPage() { const session = await auth.api.getSession({ headers: await headers(), }); return (
{/* Header */}

HRIStudio

Access Denied

{/* Unauthorized Card */}
Access Denied You don't have permission to access this resource

Insufficient Permissions

This page requires additional privileges that your account doesn't have. Please contact your administrator to request access.

{session?.user && (

Current User:

{session.user.name ?? session.user.email}

)}

Need help?{" "} Contact Support

{/* Footer */}

© 2024 HRIStudio. A platform for Human-Robot Interaction research.

); }