"use client" import { useIntl } from "react-intl" import DiscountIcon from "@scandic-hotels/design-system/Icons/DiscountIcon" import { Typography } from "@scandic-hotels/design-system/Typography" import IconChip from "@/components/TempDesignSystem/IconChip" import styles from "./row.module.css" interface BookingCodeRowProps { bookingCode?: string } export default function BookingCodeRow({ bookingCode }: BookingCodeRowProps) { const intl = useIntl() if (!bookingCode) { return null } const text = intl.formatMessage( { defaultMessage: "Booking code: {value}" }, { value: bookingCode, strong: (text) => ( {text} ), } ) return ( } > {text} ) }