"use client"

import { useEffect } from "react"

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

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

export default function HotelReservationLayout({
  children,
}: React.PropsWithChildren<LayoutArgs<LangParams>>) {
  useEffect(() => {
    document.body.style.overflow = "hidden"

    return () => {
      document.body.style.overflow = ""
    }
  }, [])
  return <div className={styles.layout}>{children}</div>
}
