import useSetOverflowVisibleOnRA from "@scandic-hotels/common/hooks/useSetOverflowVisibleOnRA"
import { useEffect } from "react"

export function KeepBodyVisible() {
  const toggle = useSetOverflowVisibleOnRA()

  useEffect(() => {
    toggle(true)
    return () => toggle(false)
  }, [toggle])

  return null
}
