import { ScandicLogoIcon } from "@/components/Icons" import Image from "@/components/Image" import Button from "@/components/TempDesignSystem/Button" import Chip from "@/components/TempDesignSystem/Chip" import Title from "@/components/TempDesignSystem/Text/Title" import { getIntl } from "@/i18n" import styles from "./hotelCard.module.css" import { HotelCardProps } from "@/types/components/hotelReservation/selectHotel/hotelCardProps" export default async function HotelCard({ hotel }: HotelCardProps) { const { formatMessage } = await getIntl() return (
{hotel.hotelContent.images.metaData.altText}
{hotel.name}
{`${hotel.address.streetAddress}, ${hotel.address.city}`} {hotel.hotelContent.texts.descriptions.short}
{hotel.detailedFacilities.slice(0, 6).map((chip, index) => ( {chip.name} ))}
) }