import { getBookingConfirmation } from "@/lib/trpc/memoizedRequests" import Link from "@/components/TempDesignSystem/Link" import Body from "@/components/TempDesignSystem/Text/Body" import Subtitle from "@/components/TempDesignSystem/Text/Subtitle" import { Toast } from "@/components/TempDesignSystem/Toasts" import { getIntl } from "@/i18n" import styles from "./hotelDetails.module.css" import type { BookingConfirmationProps } from "@/types/components/hotelReservation/bookingConfirmation/bookingConfirmation" export default async function HotelDetails({ confirmationNumber, }: BookingConfirmationProps) { const intl = await getIntl() const { hotel } = await getBookingConfirmation(confirmationNumber) return (
{intl.formatMessage({ id: "Hotel details" })}
{hotel.name} {hotel.address.streetAddress}, {hotel.address.zipCode}{" "} {hotel.address.city} {hotel.contactInformation.phoneNumber}
{intl.formatMessage( { id: "Long {long} ∙ Lat {lat}" }, { lat: hotel.location.latitude, long: hotel.location.longitude, } )}
{hotel.contactInformation.email} {hotel.contactInformation.websiteUrl}
  • N/A
) }