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

import type { Lang } from "@scandic-hotels/common/constants/language"

export default async function MiddlewareError(props: {
  params: Promise<{ lang: Lang; status: string }>
}) {
  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>
  )
}
