"use client" import { useIntl } from "react-intl" import { Typography } from "@scandic-hotels/design-system/Typography" import { useMyStayTotalPriceStore } from "@/stores/my-stay/myStayTotalPrice" import SkeletonShimmer from "@/components/SkeletonShimmer" import { formatPrice } from "@/utils/numberFormatting" import styles from "./price.module.css" import type { Variant } from "../Rooms/TotalPrice" export default function Price({ price, variant, isMember, }: { price: number | null variant: Variant isMember?: boolean }) { const intl = useIntl() const currencyCode = useMyStayTotalPriceStore((state) => state.currencyCode) if (price === null) { return } return (

{formatPrice(intl, price, currencyCode)}

) }