49 lines
1.2 KiB
TypeScript
49 lines
1.2 KiB
TypeScript
"use client"
|
|
import { useIntl } from "react-intl"
|
|
|
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
|
|
|
import Divider from "@/components/TempDesignSystem/Divider"
|
|
import { useGuaranteePaymentFailedToast } from "@/hooks/booking/useGuaranteePaymentFailedToast"
|
|
|
|
import TotalPrice from "../Rooms/TotalPrice"
|
|
import Actions from "./Actions"
|
|
import BookingCode from "./BookingCode"
|
|
import Cancellations from "./Cancellations"
|
|
import Dates from "./Dates"
|
|
import GuaranteeInfo from "./GuaranteeInfo"
|
|
import Guests from "./Guests"
|
|
import Reference from "./Reference"
|
|
import Room from "./Room"
|
|
|
|
import styles from "./referenceCard.module.css"
|
|
|
|
export function ReferenceCard() {
|
|
const intl = useIntl()
|
|
useGuaranteePaymentFailedToast()
|
|
return (
|
|
<div className={styles.referenceCard}>
|
|
<Reference />
|
|
<Dates />
|
|
<Guests />
|
|
<Room />
|
|
<Cancellations />
|
|
<GuaranteeInfo />
|
|
<Divider color="subtle" />
|
|
|
|
<div className={styles.row}>
|
|
<Typography variant="Body/Lead text">
|
|
<p>
|
|
{intl.formatMessage({
|
|
defaultMessage: "Total",
|
|
})}
|
|
</p>
|
|
</Typography>
|
|
<TotalPrice />
|
|
</div>
|
|
<BookingCode />
|
|
<Actions />
|
|
</div>
|
|
)
|
|
}
|