This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// SPDX-License-Identifier: LicenseRef-ConusAI-Template-1.0
|
||||
// The page for a member whose role does not allow what they asked for (spec §3.2). It is only ever
|
||||
// shown to somebody who is in the organization -- a stranger gets the not-found page -- so it says
|
||||
// nothing that the person did not already know.
|
||||
|
||||
import type { ReactElement } from "react"
|
||||
import { pageContext } from "../src/server/page"
|
||||
import { StateView } from "../src/ui/state-view"
|
||||
|
||||
export default async function Forbidden(): Promise<ReactElement> {
|
||||
const { i18n } = await pageContext()
|
||||
return (
|
||||
<StateView
|
||||
title={i18n.message("boundary.forbiddenTitle")}
|
||||
actions={<a href="/">{i18n.message("boundary.home")}</a>}
|
||||
>
|
||||
<p>{i18n.message("boundary.forbiddenBody")}</p>
|
||||
</StateView>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user