import { getIntl } from "@/i18n"
import { setLang } from "@/i18n/serverContext"

import { LangParams, PageArgs } from "@/types/params"

export default async function NotFound({ params }: PageArgs<LangParams>) {
  setLang(params.lang)
  const { formatMessage } = await getIntl()
  return (
    <main>
      <h1>{formatMessage({ id: "Not found" })}</h1>
      <p>{formatMessage({ id: "Could not find requested resource" })}</p>
    </main>
  )
}
