import Divider from "@/components/TempDesignSystem/Divider" import Body from "@/components/TempDesignSystem/Text/Body" import Caption from "@/components/TempDesignSystem/Text/Caption" import Title from "@/components/TempDesignSystem/Text/Title" import { getIntl } from "@/i18n" import getSingleDecimal from "@/utils/numberFormatting" import styles from "./header.module.css" import type { HotelHeaderProps } from "@/types/components/hotelReservation/enterDetails/hotelHeader" export default async function HotelHeader({ hotel }: HotelHeaderProps) { const intl = await getIntl() return (
{hotel.name}
{hotel.address.streetAddress}, {hotel.address.city}
{intl.formatMessage( { id: "Distance in km to city centre" }, { number: getSingleDecimal( hotel.location.distanceToCentre / 1000 ), } )}
{hotel.hotelContent.texts.descriptions.short}
) }