"use client" import { useIntl } from "react-intl" import Image from "@scandic-hotels/design-system/Image" import Title from "@scandic-hotels/design-system/Title" import { Typography } from "@scandic-hotels/design-system/Typography" import { HotelDetailsSidePeek } from "../../HotelDetailsSidePeek" import styles from "./header.module.css" import type { HotelData } from "@scandic-hotels/trpc/types/hotel" type HotelHeaderProps = { hotelData: HotelData & { url: string | null } } export default function HotelHeader({ hotelData: { hotel, url, restaurants, additionalData }, }: HotelHeaderProps) { const image = hotel.hotelContent?.images const intl = useIntl() const addressStr = `${hotel.address.streetAddress}, ${hotel.address.city}` return (
{image.altText
{hotel.name} {hotel.name}
{addressStr}
) }