Files
web/apps/scandic-web/components/StickyMeetingPackageWidget/index.tsx
Erik Tiekstra 91e26e30af feat/SW-1756-meeting-package-content-pages
* feat(SW-1230): Changes to script to be able to reload after soft navigation
* feat(SW-1756): Added meeting package widget on content pages

Approved-by: Matilda Landström
2025-03-21 13:31:33 +00:00

31 lines
746 B
TypeScript

"use client"
import { useRef } from "react"
import { StickyElementNameEnum } from "@/stores/sticky-position"
import MeetingPackageWidget from "@/components/MeetingPackageWidget"
import useStickyPosition from "@/hooks/useStickyPosition"
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>
)
}