Files

19 lines
889 B
TypeScript

// SPDX-License-Identifier: LicenseRef-ConusAI-Template-1.0
// The page for an address that leads nowhere (spec §3.3). It is the one answer for an organization
// that does not exist, an organization the person is not in, a workspace or a project of another
// organization, and a path no module answers: the words and the 404 status are the same for all of
// them, so the page cannot be used to find out which organizations exist.
import type { ReactElement } from "react"
import { pageContext } from "../src/server/page"
import { StateView } from "../src/ui/state-view"
export default async function NotFound(): Promise<ReactElement> {
const { i18n } = await pageContext()
return (
<StateView title={i18n.message("boundary.notFoundTitle")} actions={<a href="/">{i18n.message("boundary.home")}</a>}>
<p>{i18n.message("boundary.notFoundBody")}</p>
</StateView>
)
}