"use client" import { cx } from "class-variance-authority" import { useIntl } from "react-intl" import { Progress } from "@scandic-hotels/design-system/Progress" import { Typography } from "@scandic-hotels/design-system/Typography" import styles from "./progressSection.module.css" import type { ProgressCalculation } from "../../types" interface ProgressSectionProps { earned: number progress: ProgressCalculation toKeepCurrent?: number } export default function ProgressSection({ earned, progress, toKeepCurrent, }: ProgressSectionProps) { const intl = useIntl() const hasMarkerPosition = progress.markerPosition !== undefined return (