import { Typography } from "@scandic-hotels/design-system/Typography" import { getIntl } from "@/i18n" import { LinkedReservation } from "./LinkedReservation" import Room from "./Room" import styles from "./rooms.module.css" import type { BookingConfirmationRoomsProps } from "@/types/components/hotelReservation/bookingConfirmation/rooms" async function RoomTitle({ nr }: { nr: number }) { const intl = await getIntl() return (

{intl.formatMessage( { defaultMessage: "Room {roomIndex}", }, { roomIndex: nr } )}

) } export default async function Rooms({ booking, checkInTime, checkOutTime, mainRoom, }: BookingConfirmationRoomsProps) { const { linkedReservations } = booking return (
{linkedReservations.length ? : null}
{linkedReservations.map((reservation, idx) => (
))}
) }