import { useIntl } from "react-intl" import { Button } from "@scandic-hotels/design-system/Button" import { Typography } from "@scandic-hotels/design-system/Typography" import Card from "./Card" import styles from "./surprises.module.css" import type { InitialProps } from "@/types/components/blocks/surprises" export default function Initial({ totalSurprises, onOpen }: InitialProps) { const intl = useIntl() return (

{totalSurprises > 1 ? ( <> {intl.formatMessage( { defaultMessage: "You have {amount} gifts waiting for you!", }, { amount: totalSurprises, b: (str) => {str}, } )}
{intl.formatMessage({ defaultMessage: "Hurry up and use them before they expire!", })} ) : ( intl.formatMessage({ defaultMessage: "We have a special gift waiting for you!", }) )}

{intl.formatMessage({ defaultMessage: "You'll find all your gifts in 'My benefits'", })}

) }