import Subtitle from "@/components/TempDesignSystem/Text/Subtitle" 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" export default async function Rooms({ booking, checkInTime, checkOutTime, mainRoom, linkedReservations, }: BookingConfirmationRoomsProps) { const intl = await getIntl() return (
{linkedReservations.length ? ( {intl.formatMessage({ id: "Room {roomIndex}" }, { roomIndex: 1 })} ) : null}
{linkedReservations.map((reservation, idx) => (
{intl.formatMessage( { id: "Room {roomIndex}" }, { roomIndex: idx + 2 } )}
))}
) }