feat(SW-2879): Move BookingWidget to booking-flow package * Fix lockfile * Fix styling * a tiny little booking widget test * Tiny fixes * Merge branch 'master' into feat/sw-2879-booking-widget-to-booking-flow-package * Remove unused scripts * lint:fix * Merge branch 'master' into feat/sw-2879-booking-widget-to-booking-flow-package * Tiny lint fixes * update test * Update Input in booking-flow * Clean up comments etc * Merge branch 'master' into feat/sw-2879-booking-widget-to-booking-flow-package * Setup tracking context for booking-flow * Add missing use client * Fix temp tracking function * Pass booking to booking-widget * Remove comment * Add use client to booking widget tracking provider * Add use client to tracking functions * Merge branch 'master' into feat/sw-2879-booking-widget-to-booking-flow-package * Move debug page * Merge branch 'master' into feat/sw-2879-booking-widget-to-booking-flow-package * Merge branch 'master' into feat/sw-2879-booking-widget-to-booking-flow-package * Merge branch 'master' into feat/sw-2879-booking-widget-to-booking-flow-package Approved-by: Bianca Widstam
31 lines
788 B
TypeScript
31 lines
788 B
TypeScript
"use client"
|
|
|
|
import { useRef } from "react"
|
|
|
|
import useStickyPosition from "@scandic-hotels/common/hooks/useStickyPosition"
|
|
import { StickyElementNameEnum } from "@scandic-hotels/common/stores/sticky-position"
|
|
|
|
import MeetingPackageWidget from "@/components/MeetingPackageWidget"
|
|
|
|
import styles from "./stickyMeetingPackageWidget.module.css"
|
|
|
|
interface StickyMeetingPackageWidgetProps {
|
|
destination?: string
|
|
}
|
|
|
|
export default function StickyMeetingPackageWidget({
|
|
destination,
|
|
}: StickyMeetingPackageWidgetProps) {
|
|
const ref = useRef<HTMLDivElement>(null)
|
|
useStickyPosition({
|
|
ref,
|
|
name: StickyElementNameEnum.MEETING_PACKAGE_WIDGET,
|
|
})
|
|
|
|
return (
|
|
<div ref={ref} className={styles.wrapper}>
|
|
<MeetingPackageWidget destination={destination} />
|
|
</div>
|
|
)
|
|
}
|