"use client" import { useIntl } from "react-intl" import Link from "@scandic-hotels/design-system/OldDSLink" import { Typography } from "@scandic-hotels/design-system/Typography" import styles from "./hotelDetails.module.css" import type { BookingConfirmation } from "@scandic-hotels/trpc/types/bookingConfirmation" export function HotelDetails({ hotel, url, }: { hotel: BookingConfirmation["hotel"] url: string | null }) { const intl = useIntl() return (
{hotel.name}
{intl.formatMessage( { id: "bookingConfirmation.hotel.address", defaultMessage: "{streetAddress}, {zipCode} {city}", }, { streetAddress: hotel.address.streetAddress, zipCode: hotel.address.zipCode, city: hotel.address.city, } )}
{hotel.contactInformation.phoneNumber}