"use client" import { useState } from "react" import { Button as ButtonRAC, Dialog, DialogTrigger, Modal, ModalOverlay, } from "react-aria-components" import { useIntl } from "react-intl" import { useMediaQuery } from "usehooks-ts" import { FakeButton } from "@scandic-hotels/design-system/FakeButton" import { IconButton } from "@scandic-hotels/design-system/IconButton" import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" import { Typography } from "@scandic-hotels/design-system/Typography" import MeetingPackageWidgetContent from "./Content/Content" import styles from "./meetingPackageWidget.module.css" export interface MeetingPackageWidgetProps { destination?: string className?: string } export default function MeetingPackageWidget(props: MeetingPackageWidgetProps) { const intl = useIntl() /* Meeting booking widget changes design at 948px */ const isDesktop = useMediaQuery("(min-width: 948px)", { initializeWithValue: false, }) const [isHovered, setIsHovered] = useState(false) return isDesktop ? ( ) : (
setIsHovered(true)} onHoverEnd={() => setIsHovered(false)} > {intl.formatMessage({ id: "meetingPackage.meetingLocation", defaultMessage: "Meeting location", })} {intl.formatMessage({ id: "meetingPackage.hotels&Destintions", defaultMessage: "Hotels & destinations", })} {intl.formatMessage({ id: "bookingWidget.button.search", defaultMessage: "Search", })}
{({ close }) => ( <>
)}
) }