import { RoomCardSkeleton } from "@/components/HotelReservation/RoomCardSkeleton/RoomCardSkeleton"

import styles from "./roomsListSkeleton.module.css"

type Props = {
  count?: number
}

export function RoomsListSkeleton({ count = 4 }: Props) {
  return (
    <div className={styles.container}>
      <div className={styles.skeletonContainer}>
        {Array.from({ length: count }).map((_, index) => (
          <RoomCardSkeleton key={index} />
        ))}
      </div>
    </div>
  )
}
