import React from "react"; import { useParams } from "react-router-dom"; import { StashService } from "src/core/StashService"; import { LoadingIndicator } from "src/components/Shared"; import { GalleryViewer } from "./GalleryViewer"; export const Gallery: React.FC = () => { const { id = "" } = useParams(); const { data, error, loading } = StashService.useFindGallery(id); const gallery = data?.findGallery; if (loading || !gallery) return ; if (error) return
{error.message}
; return (
); };