import Caption from "@/components/TempDesignSystem/Text/Caption" import Title from "@/components/TempDesignSystem/Text/Title" import { getIntl } from "@/i18n" import styles from "./selectionCard.module.css" import { SelectionCardProps } from "@/types/components/hotelReservation/selectRate/selectionCard" export default async function SelectionCard({ price, membersPrice, currency, title, subtext, }: SelectionCardProps) { const { formatMessage } = await getIntl() return (
{title}
i
{subtext}
{/* TODO: Handle currency and this whole line of text in a better way through intl */} {price} {currency}/{formatMessage({ id: "night" })} {/* TODO: Handle currency and this whole line of text in a better way through intl */} {formatMessage({ id: "Members" })} {membersPrice} {currency}/ {formatMessage({ id: "night" })}
) }