21 lines
785 B
TypeScript
21 lines
785 B
TypeScript
// 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>
|
|
)
|
|
}
|