"use client" import { useIntl } from "react-intl" import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" import { Typography } from "@scandic-hotels/design-system/Typography" import { Toast } from "@/components/TempDesignSystem/Toasts" import { trackMyStayPageLink } from "@/utils/tracking" import SummaryCard from "./SummaryCard" import styles from "./bookingSummary.module.css" import type { Hotel } from "@/types/hotel" interface BookingSummaryProps { hotel: Hotel } export default function BookingSummary({ hotel }: BookingSummaryProps) { const intl = useIntl() const directionsUrl = `https://www.google.com/maps/dir/?api=1&destination=${hotel.location.latitude},${hotel.location.longitude}` return (

{intl.formatMessage({ defaultMessage: "Practical information", })}

{hotel.name}

} image={{ src: "/_static/img/scandic-service.svg", alt: "Scandic service", }} texts={[ hotel.address.streetAddress, `${hotel.address.zipCode} ${hotel.address.city}`, ]} supportingText={intl.formatMessage( { defaultMessage: "Long {long} ∙ Lat {lat}", }, { lat: hotel.location.latitude, long: hotel.location.longitude, } )} links={[ { href: directionsUrl, text: intl.formatMessage({ defaultMessage: "Directions", }), icon: ( ), onClick: () => trackMyStayPageLink("see on map"), }, { href: `mailto:${hotel.contactInformation.email}`, text: intl.formatMessage({ defaultMessage: "Email", }), icon: ( ), onClick: () => trackMyStayPageLink("email us"), }, { href: hotel.contactInformation.websiteUrl, text: intl.formatMessage({ defaultMessage: "Homepage", }), icon: ( ), onClick: () => trackMyStayPageLink("hotel homepage"), }, ]} />
{hotel.specialAlerts.length > 0 && (
    {hotel.specialAlerts.map((alert) => (
  • {alert.text}
  • ))}
)}
) }