/* eslint-disable formatjs/no-literal-string-in-jsx */ "use client" import { useIntl } from "react-intl" import { dt } from "@scandic-hotels/common/dt" import { IconButton } from "@scandic-hotels/design-system/IconButton" // client only import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" import Modal from "@scandic-hotels/design-system/Modal" import Link from "@scandic-hotels/design-system/OldDSLink" import { Typography } from "@scandic-hotels/design-system/Typography" import { compareAllLevels, faq } from "@/constants/webHrefs" import useLang from "@/hooks/useLang" import styles from "./LevelProgressModal.module.css" type LevelProgressModalProps = { color: string | null tierExpires: string | null } export default function LevelProgressModal({ color, tierExpires, }: LevelProgressModalProps) { const intl = useIntl() const lang = useLang() // calculate tierStarts by tierExpires let tierStarts: string | null = null if (tierExpires) { const date = new Date(tierExpires) date.setFullYear(date.getFullYear() - 1) tierStarts = date.toISOString().split("T")[0] } return ( } >

{intl.formatMessage({ id: "myPages.yourMemberYearAndLevelProgress", defaultMessage: "Your member year and level progress", })}

{intl.formatMessage({ id: "myPages.currentMemberYear", defaultMessage: "Current member year", })}

{intl.formatMessage({ id: "myPages.pointsYouEarnDetermineYourLevel", defaultMessage: "The points you earn this year determine your level for both this and the next member year.", })}

{intl.formatMessage({ id: "myPages.compareAllLevels", defaultMessage: "Compare all levels", })} {intl.formatMessage({ id: "common.scandicFriendsFaq", defaultMessage: "Scandic Friends FAQ", })}
) }