import { useIntl } from "react-intl"

import AccordionItem from "@/components/TempDesignSystem/Accordion/AccordionItem"
import Body from "@/components/TempDesignSystem/Text/Body"

import type { AccessibilityProps } from "@/types/components/hotelReservation/selectHotel/selectHotel"
import { IconName } from "@/types/components/icon"

export default function Accessibility({
  elevatorPitchText,
}: AccessibilityProps) {
  const intl = useIntl()
  return (
    <AccordionItem
      title={intl.formatMessage({ id: "Accessibility" })}
      icon={IconName.Accessibility}
      variant="sidepeek"
    >
      <Body>{elevatorPitchText}</Body>
    </AccordionItem>
  )
}
