"use client" import NextLink from "next/link" import { useIntl } from "react-intl" import FacebookIcon from "@scandic-hotels/design-system/Icons/FacebookIcon" import InstagramIcon from "@scandic-hotels/design-system/Icons/InstagramIcon" import Image from "@scandic-hotels/design-system/Image" import { LocalCallCharges } from "@scandic-hotels/design-system/LocalCallCharges" import { TextLink } from "@scandic-hotels/design-system/TextLink" import { Typography } from "@scandic-hotels/design-system/Typography" import useLang from "../../../hooks/useLang" import styles from "./contactInformation.module.css" import type { Hotel, HotelAddress } from "@scandic-hotels/trpc/types/hotel" interface ContactInformationProps { hotelAddress: HotelAddress contact: Hotel["contactInformation"] socials: Hotel["socialMedia"] ecoLabels: Hotel["hotelFacts"]["ecoLabels"] hotelName: Hotel["name"] } export function ContactInformation({ hotelAddress, contact, socials, ecoLabels, hotelName, }: ContactInformationProps) { const intl = useIntl() const lang = useLang() const directionsUrl = `https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent( `${hotelName}, ${hotelAddress.streetAddress}, ${hotelAddress.zipCode} ${hotelAddress.city}` )}` return (

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

{intl.formatMessage({ id: "common.address", defaultMessage: "Address", })}

{hotelAddress.streetAddress}

{hotelAddress.city}

{intl.formatMessage({ id: "common.drivingDirections", defaultMessage: "Driving directions", })}

{intl.formatMessage({ id: "common.googleMaps", defaultMessage: "Google Maps", })}

{intl.formatMessage({ id: "common.contactUs", defaultMessage: "Contact us", })}

{contact.phoneNumber}
{socials.instagram || socials.facebook ? (

{intl.formatMessage({ id: "common.followUs", defaultMessage: "Follow us", })}

{socials.instagram && ( )} {socials.facebook && ( )}
) : null}

{intl.formatMessage({ id: "common.email", defaultMessage: "Email", })}

{contact.email}
{ecoLabels.nordicEcoLabel && (
{intl.formatMessage({

{intl.formatMessage({ id: "common.nordicSwanEcolabel", defaultMessage: "Nordic Swan Ecolabel", })}

{ecoLabels.svanenEcoLabelCertificateNumber}

)}
) }