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

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

export default async function MiddlewareError(props: LayoutArgs<LangParams & StatusParams>) {
  const params = await props.params;
  return (
    // eslint-disable-next-line formatjs/no-literal-string-in-jsx
    <div className={styles.layout}>Middleware error {params.lang} {params.status}
    </div>
  );
}
