wiki/quartz/components/pages/404.tsx

14 lines
365 B
TypeScript
Raw Normal View History

import { i18n } from "../../i18n/i18next"
import { QuartzComponentConstructor, QuartzComponentProps } from "../types"
2023-09-07 04:02:21 +00:00
function NotFound({ cfg }: QuartzComponentProps) {
2023-09-07 04:02:21 +00:00
return (
<article class="popover-hint">
<h1>404</h1>
<p>{i18n(cfg.locale, "404")}</p>
2023-09-07 04:02:21 +00:00
</article>
)
}
export default (() => NotFound) satisfies QuartzComponentConstructor