import MaxWidth from "@/components/MaxWidth"
import PreviousStays from "@/components/MyPages/Blocks/Stays/Previous"
import UpcomingStays from "@/components/MyPages/Blocks/Stays/Upcoming"

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

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

export default async function MyStays({ params }: PageArgs<LangParams>) {
  return (
    <MaxWidth className={styles.container} tag="main">
      <UpcomingStays lang={params.lang} />
      <PreviousStays lang={params.lang} />
    </MaxWidth>
  )
}
