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

import styles from "./page.module.css"

import type { LangParams, LayoutArgs, StatusParams } from "@/types/params"

export default function MiddlewareError({
  params,
}: LayoutArgs<LangParams & StatusParams>) {
  setLang(params.lang)

  return (
    <div className={styles.layout}>
      Middleware Error {params.lang}: {params.status}
    </div>
  )
}
