Dental Care
This commit is contained in:
25
app/forbidden/unauthorized.tsx
Normal file
25
app/forbidden/unauthorized.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
"use client";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import Link from "next/link";
|
||||
import { usePathname } from "next/navigation";
|
||||
|
||||
export default function UnauthorizedPage() {
|
||||
const pathname = usePathname();
|
||||
|
||||
return (
|
||||
<main className="flex grow items-center justify-center px-4 text-center">
|
||||
<div className="space-y-6">
|
||||
<div className="space-y-2">
|
||||
<h1 className="text-2xl font-semibold">401 - Unauthorized</h1>
|
||||
<p className="text-muted-foreground">Please sign in to continue.</p>
|
||||
</div>
|
||||
<div>
|
||||
<Button asChild>
|
||||
<Link href={`/sign-in?redirect=${pathname}`}>Sign in</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user