"use client"

import { useIntl } from "react-intl"

export function AlternativeHotelsPageTitle({
  hotelName,
}: {
  hotelName: string
}) {
  const intl = useIntl()
  const title = intl.formatMessage(
    {
      id: "alternativeHotels.title",
      defaultMessage: "Alternatives for {value}",
    },
    {
      value: hotelName,
    }
  )

  return <>{title}</>
}
