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