/* 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 { TextLink } from "@scandic-hotels/design-system/TextLink" import { Typography } from "@scandic-hotels/design-system/Typography" import { compareAllLevels, faq } from "@/constants/webHrefs" import useLang from "@/hooks/useLang" import { getTierStartDate } from "@/utils/getTierStartDate" 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() const tierStarts = getTierStartDate(tierExpires) 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", })}
) }