"use client"

import {
  useTrackHardNavigation,
  useTrackSoftNavigation,
} from "@/components/TrackingSDK/hooks"

import type {
  TrackingSDKHotelInfo,
  TrackingSDKPageData,
  TrackingSDKPaymentInfo,
} from "@/types/components/tracking"

export default function TrackingSDK({
  pageData,
  hotelInfo,
  paymentInfo,
}: {
  pageData: TrackingSDKPageData
  hotelInfo?: TrackingSDKHotelInfo
  paymentInfo?: TrackingSDKPaymentInfo
}) {
  useTrackHardNavigation({ pageData, hotelInfo, paymentInfo })
  useTrackSoftNavigation({ pageData, hotelInfo, paymentInfo })

  return null
}
