"use client" import { useIntl } from "react-intl" import { Button } from "@scandic-hotels/design-system/Button" import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" import { toast } from "@scandic-hotels/design-system/Toast" import { Typography } from "@scandic-hotels/design-system/Typography" import { RewardIcon } from "../../RewardIcon" import styles from "../redeem.module.css" import type { Campaign } from "@scandic-hotels/trpc/types/rewards" export default function Campaign({ reward }: { reward: Campaign }) { const intl = useIntl() return ( <>

{reward.label}

{reward.description}

{intl.formatMessage({ id: "redeemFlow.promoCode", defaultMessage: "Promo code", })}

{reward.operaRewardId}

) }