import { auth } from '@/auth'; import { redirect } from 'next/navigation'; import { Button } from '@/components/ui/Button'; import Link from 'next/link'; export default async function Unauthorized() { const session = await auth(); // redirect to home if user is already logged in if (session?.user) { redirect('/'); } return (
You are not authorized to view this page. Please sign in with Landing account to continue.
); }