import SidePeek from "@/components/TempDesignSystem/SidePeek"

import { RoomSidePeekContent } from "./RoomSidePeekContent"

import { SidePeekEnum } from "@/types/components/hotelReservation/sidePeek"
import type { RoomSidePeekProps } from "@/types/components/sidePeeks/roomSidePeek"

export default function RoomSidePeek({
  room,
  activeSidePeek,
  close,
}: RoomSidePeekProps) {
  return (
    <SidePeek
      title={room.name}
      isOpen={activeSidePeek === SidePeekEnum.roomDetails}
      handleClose={close}
    >
      <RoomSidePeekContent room={room} />
    </SidePeek>
  )
}
