Feat(SW-1274) modify date my stay * feat(SW-1676): Modify guest details step 1 * feat(SW-1676) Integration to api to update guest details * feat(SW-1676) Reuse of old modal * feat(SW-1676) updated modify guest * feat(SW-1676) cleanup * feat(SW-1274) modify stay modal and datepicker * feat(SW-1274) DatePicker from modify dates * feat(SW-1274) Modify dates fixes and merge conflicts * feat(SW-1274) handle modify for multiroom * feat(SW-1274) update manage stay * feat(SW-1274) fixed some comments * feat(SW-1274) use Modal instead * feat(SW-1274) fixed formatChildBedPreferences * feat(SW-1274) removed any as prop * feat(SW-1274) fix rebase conflicts * feat(SW-1274) fix flicker on modify modal * feat(SW-1274) CalendarButton * feat(SW-1274) fixed gap variable * feat(SW-1274) simplified code * feat(SW-1274) Split up DatePicker on mode * feat(SW-1274) Updated file structure for datepicker Approved-by: Arvid Norlin
44 lines
1.0 KiB
TypeScript
44 lines
1.0 KiB
TypeScript
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,
|
|
}: PriceContainerProps) {
|
|
return (
|
|
<div className={styles.priceContainer}>
|
|
<div className={styles.info}>
|
|
<Caption color="uiTextHighContrast" type="bold">
|
|
{text}
|
|
</Caption>
|
|
<Caption color="uiTextHighContrast">
|
|
{nightsText}, {adultsText}
|
|
{totalChildren > 0 ? `, ${childrenText}` : ""}
|
|
</Caption>
|
|
</div>
|
|
<div className={styles.price}>
|
|
<Subtitle color="burgundy" type="one">
|
|
{price} {currencyCode}
|
|
</Subtitle>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|