1,
- })}
- >
+
+
{nfts.length > 1 && (
)}
+
{nfts.length > 2 && (
)}
diff --git a/resources/js/Pages/Collections/Components/FeaturedCollections/FeaturedCollectionsCarousel.tsx b/resources/js/Pages/Collections/Components/FeaturedCollections/FeaturedCollectionsCarousel.tsx
index 0182094f6..469fbf2ce 100644
--- a/resources/js/Pages/Collections/Components/FeaturedCollections/FeaturedCollectionsCarousel.tsx
+++ b/resources/js/Pages/Collections/Components/FeaturedCollections/FeaturedCollectionsCarousel.tsx
@@ -1,28 +1,69 @@
-import React from "react";
-import { Autoplay, Navigation, Pagination } from "swiper";
+import React, { useState } from "react";
+import type Swiper from "swiper";
import { FeaturedCollectionsItem } from "./FeaturedCollectionsItem";
-import { Carousel, CarouselItem } from "@/Components/Carousel";
+import {
+ Carousel,
+ CarouselItem,
+ CarouselNextButton,
+ CarouselPagination,
+ CarouselPreviousButton,
+} from "@/Components/Carousel";
export const FeaturedCollectionsCarousel = ({
featuredCollections,
+ autoplayDelay = 5000,
}: {
featuredCollections: App.Data.Collections.CollectionFeaturedData[];
-}): JSX.Element => (
-
- {featuredCollections.map((collection, index) => (
-
-
-
- ))}
-
-);
+ autoplayDelay?: number;
+}): JSX.Element => {
+ const [carousel, setCarousel] = useState
();
+
+ return (
+
+
+
+
+
+ {featuredCollections.map((collection, index) => (
+
+
+
+ ))}
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/resources/js/Pages/Collections/Components/FeaturedCollections/FeaturedCollectionsItem.tsx b/resources/js/Pages/Collections/Components/FeaturedCollections/FeaturedCollectionsItem.tsx
index 672ab06a8..424a79bdc 100644
--- a/resources/js/Pages/Collections/Components/FeaturedCollections/FeaturedCollectionsItem.tsx
+++ b/resources/js/Pages/Collections/Components/FeaturedCollections/FeaturedCollectionsItem.tsx
@@ -21,7 +21,7 @@ const FeaturedCollectionInfo = ({ data }: { data: App.Data.Collections.Collectio
const { t } = useTranslation();
return (
-
+
@@ -46,7 +46,7 @@ const FeaturedCollectionInfo = ({ data }: { data: App.Data.Collections.Collectio
-
+
{truncateDescription(data.description)}
@@ -58,6 +58,7 @@ const FeaturedCollectionInfo = ({ data }: { data: App.Data.Collections.Collectio
nftsCount={data.nftsCount}
volume={data.volume}
/>
+
(