File size: 473 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import { forbidden, notFound, unauthorized } from 'next/navigation'
export default async function Page({
searchParams,
}: {
searchParams: Promise<{ [key: string]: string }>
}) {
const search = await searchParams
switch (search.name) {
case 'not-found':
return notFound()
case 'forbidden':
return forbidden()
case 'unauthorized':
return unauthorized()
default:
break
}
return <p>{'Visit /boundary?name=<boundary>'}</p>
}
|