import { escapeHtml } from "../lib/html.ts"; import { t } from "../lib/i18n/index.ts"; import { type LayoutOptions, layout } from "./layout.ts"; import { primaryButtonClass, THEME } from "./theme/index.ts"; export function notFoundPage( message: string, options: LayoutOptions = {}, ): string { const locale = options.locale ?? "en"; const msg = t(locale); const body = `
404

${escapeHtml(msg.notFound.heading)}

${escapeHtml(message)}

${escapeHtml(msg.notFound.backHome)}
`; return layout(msg.notFound.heading, body, { ...options, noindex: true }); }