"use client" import { useEffect } from "react" import { Dialog, Modal, ModalOverlay } from "react-aria-components" import { useIntl } from "react-intl" import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" import { OldDSButton as Button } from "@scandic-hotels/design-system/OldDSButton" import { Typography } from "@scandic-hotels/design-system/Typography" import useSetOverflowVisibleOnRA from "@/hooks/useSetOverflowVisibleOnRA" import SidePeekSEO from "./SidePeekSEO" import styles from "./sidePeekSelfControlled.module.css" import type { SidePeekSelfControlledProps } from "./sidePeek" export default function SidePeekSelfControlled({ children, title, }: React.PropsWithChildren) { const intl = useIntl() return ( <> {({ close }) => ( )} {children} ) } function KeepBodyVisible() { const toggle = useSetOverflowVisibleOnRA() useEffect(() => { toggle(true) return () => toggle(false) }, [toggle]) return null }