"use client" import { useIntl } from "react-intl" import { Divider } from "@scandic-hotels/design-system/Divider" import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" import { Typography } from "@scandic-hotels/design-system/Typography" import ButtonLink from "@/components/ButtonLink" import ParkingList from "./ParkingList" import ParkingPrices from "./ParkingPrices" import styles from "./parkingInformation.module.css" import type { Parking } from "@scandic-hotels/trpc/types/hotel" interface ParkingInformationProps { parking: Parking showExternalParkingButton?: boolean } export default function ParkingInformation({ parking, showExternalParkingButton = true, }: ParkingInformationProps) { const intl = useIntl() const title = `${parking.type}${parking.name ? ` (${parking.name})` : ""}` return (

{title}

{intl.formatMessage({ defaultMessage: "Prices" })}
{intl.formatMessage({ defaultMessage: "Weekday prices" })}
{parking.pricing.localCurrency ? ( ) : null}
{intl.formatMessage({ defaultMessage: "Weekend prices" })}
{parking.pricing.localCurrency ? ( ) : null}
{parking.externalParkingUrl && showExternalParkingButton && ( {intl.formatMessage({ defaultMessage: "Book parking" })} )}
) }