"use client" import { useIntl } from "react-intl" import Caption from "@/components/TempDesignSystem/Text/Caption" import Footnote from "@/components/TempDesignSystem/Text/Footnote" import { formatPrice } from "@/utils/numberFormatting" import styles from "./signupPromo.module.css" import type { SignupPromoProps } from "@/types/components/hotelReservation/signupPromo" export default function SignupPromoDesktop({ memberPrice, badgeContent, }: SignupPromoProps) { const intl = useIntl() if (!memberPrice) { return null } const { amount, currency } = memberPrice const price = formatPrice(intl, amount, currency) return memberPrice ? (
{badgeContent && {badgeContent}} {intl.formatMessage( { id: "To get the member price {price}, log in or join when completing the booking.", }, { span: (str) => ( {str} ), price, } )}
) : null }