import { useState } from "react"; import { useMedia } from "@/modules/media/hooks/useMedia"; import { SkeletonGallery } from "@/shared/Components/SkeletonGallery/SkeletonGallery"; import "./PhotoGallery.style.scss" interface PhotoGalleryProps { images?: string[]; category?: string; } const PhotoGallery = ({ images }: PhotoGalleryProps) => { const { data: mediaData, isLoading, isError } = useMedia(); const [visibleCount] = useState(10); const filteredMedia = images ? images.map((src, id) => ({ id, src })) : mediaData || []; if (isLoading) { return (