"use client" import { useState } from "react" import { Button as ButtonRAC } from "react-aria-components" import { useIntl } from "react-intl" import { SidePeekEnum } from "@scandic-hotels/booking-flow/stores/sidepeek" import { Typography } from "@scandic-hotels/design-system/Typography" import { FacilityToIcon } from "@/components/ContentType/HotelPage/data" import ReadMore from "@/components/HotelReservation/ReadMore" import Alert from "@/components/TempDesignSystem/Alert" import styles from "./hotelDescription.module.css" import type { Hotel } from "@scandic-hotels/trpc/types/hotel" export default function HotelDescription({ description, hotel, sortedFacilities, }: { description?: string hotel: Hotel sortedFacilities: Hotel["detailedFacilities"] }) { const intl = useIntl() const [expanded, setExpanded] = useState(false) const handleToggle = () => { setExpanded((prev) => !prev) } const textShowMore = intl.formatMessage({ defaultMessage: "Show more", }) const textShowLess = intl.formatMessage({ defaultMessage: "Show less", }) return (
{facility.name}
{description}