-
-
-
- {gallery.views}
-
+
+
+
+
+ {gallery.views}
+
+
+
+ {showDeleteButton && (
+ <>
+
+
+
+ >
+ )}
);
-export const GalleryStats = ({ gallery }: { gallery: App.Data.Gallery.GalleryData }): JSX.Element => {
+export const GalleryStats = ({
+ gallery,
+ showDeleteButton = false,
+}: {
+ gallery: App.Data.Gallery.GalleryData;
+ showDeleteButton?: boolean;
+}): JSX.Element => {
const { user } = useAuth();
const { t } = useTranslation();
return (
@@ -369,8 +395,18 @@ export const GalleryStats = ({ gallery }: { gallery: App.Data.Gallery.GalleryDat
{gallery.collectionsCount}
-
-
+
+
+
+
);
};
diff --git a/resources/js/Components/Galleries/NftGalleryCard.tsx b/resources/js/Components/Galleries/NftGalleryCard.tsx
index 8de1531d9..5fab5d628 100644
--- a/resources/js/Components/Galleries/NftGalleryCard.tsx
+++ b/resources/js/Components/Galleries/NftGalleryCard.tsx
@@ -3,11 +3,14 @@ import cn from "classnames";
import { GalleryCoverImage } from "@/Components/Galleries/GalleryPage/GalleryCoverImage";
import { GalleryHeading, GalleryStats, NftImageGrid } from "@/Components/Galleries/NftGalleryCard.blocks";
-export const NftGalleryCard = ({ gallery }: { gallery: App.Data.Gallery.GalleryData }): JSX.Element => (
-