import { useIntl } from "react-intl" import { bookingTermsAndConditions, privacyPolicy } from "@/constants/webHrefs" import Checkbox from "@/components/TempDesignSystem/Form/Checkbox" import Link from "@/components/TempDesignSystem/Link" import Caption from "@/components/TempDesignSystem/Text/Caption" import useLang from "@/hooks/useLang" import styles from "../payment.module.css" import type { TermsAndConditionsProps } from "@/types/components/hotelReservation/enterDetails/payment" export default function TermsAndConditions({ isFlexBookingTerms, }: TermsAndConditionsProps) { const intl = useIntl() const lang = useLang() return ( <> {isFlexBookingTerms ? intl.formatMessage( { defaultMessage: "I accept the terms for this booking and the general Terms & Conditions, and understand that Scandic will process my personal data for this booking in accordance with Scandic's Privacy policy.", }, { termsAndConditionsLink: (str) => ( {str} ), privacyPolicyLink: (str) => ( {str} ), } ) : intl.formatMessage( { defaultMessage: "By paying with any of the payment methods available, I accept the terms for this booking and the general Terms & Conditions, and understand that Scandic will process my personal data for this booking in accordance with Scandic's Privacy policy. I also accept that Scandic requires a valid payment card during my visit in case anything is left unpaid.", }, { termsAndConditionsLink: (str) => ( {str} ), privacyPolicyLink: (str) => ( {str} ), } )} {intl.formatMessage({ defaultMessage: "I accept the terms and conditions", })} {intl.formatMessage({ defaultMessage: "I would like to get my booking confirmation via sms", })} ) }