import TrophyIcon from "@scandic-hotels/design-system/Icons/TrophyIcon" import { Typography } from "@scandic-hotels/design-system/Typography" import { getIntl } from "@/i18n" import styles from "./successCard.module.css" interface SuccessCardProps { pointsEarned?: number | null } export default async function SuccessCard({ pointsEarned }: SuccessCardProps) { const intl = await getIntl() return (
{intl.formatMessage( { defaultMessage: "You've earned {pointAmount} points this member year.", }, { pointAmount: ( {intl.formatNumber(pointsEarned)} ), } )}