import Caption from "@/components/TempDesignSystem/Text/Caption" import Subtitle from "@/components/TempDesignSystem/Text/Subtitle" import styles from "./priceContainer.module.css" interface PriceContainerProps { text: string price: number currencyCode: string nightsText: string adultsText: string childrenText: string totalChildren?: number } export default function PriceContainer({ text, price, currencyCode, nightsText, adultsText, childrenText, totalChildren = 0, }: PriceContainerProps) { return (
{text} {nightsText}, {adultsText} {totalChildren > 0 ? `, ${childrenText}` : ""}
{price} {currencyCode}
) }