-
-
+
+ {/* Tabs */}
+
+
+
+
+
+
+ {/* NFT Gallery */}
-
-
-
+
+ {/* Buttons */}
+
+
+
-
);
diff --git a/components/ui/nftgallery.tsx b/components/ui/nftgallery.tsx
index 275b52e..e96fdab 100644
--- a/components/ui/nftgallery.tsx
+++ b/components/ui/nftgallery.tsx
@@ -1,30 +1,68 @@
-import React from 'react';
+import React, { useState } from 'react';
+
+import Image from 'next/image';
+import {
+ Dialog,
+ DialogContent,
+ DialogDescription,
+ DialogHeader,
+ DialogTitle,
+ DialogTrigger,
+} from "../ui/dialog";
interface NFTGalleryProps {
filter: 'all' | 'user';
}
+interface NFT {
+ id: number;
+ image: string;
+ title: string;
+ owner?: string;
+}
+
const NFTGallery: React.FC
= ({ filter }) => {
// Dummy data for demonstration purposes
const allNFTs = [
- { id: 1, image: '/nft-placeholder.png', title: 'NFT 1' },
- { id: 2, image: '/nft-placeholder.png', title: 'NFT 2' },
+ { id: 1, image: '/assets/cat4.jpeg', title: 'NFT 1', owner: 'Mercy' },
+ { id: 2, image: '/assets/cat2.jpeg', title: 'NFT 2', owner: 'Jada' },
+ { id: 3, image: '/assets/cat3.jpeg', title: 'NFT 3', owner: 'Mark' },
+ { id: 4, image: '/assets/cat4.jpeg', title: 'NFT 4', owner: 'Jonah' },
+ { id: 5, image: '/assets/cat2.jpeg', title: 'NFT 5', owner: 'Bezos' },
];
const userNFTs = [
- { id: 1, image: '/nft-placeholder.png', title: 'User NFT 1' },
+ { id: 1, image: '/assets/cat4.jpeg', title: 'User NFT 1', owner: 'You' },
];
- // Choose which NFTs to display based on the active tab
+ //filter NFTs to display based on the active tab
const nfts = filter === 'all' ? allNFTs : userNFTs;
+ const [selectedNFT, setSelectedNFT] = useState(null);
+
return (
-
+
{nfts.map((nft) => (
-
-

-
{nft.title}
-
+
))}
);
diff --git a/public/assets/test.jpeg b/public/assets/test.jpeg
new file mode 100644
index 0000000..35a621a
Binary files /dev/null and b/public/assets/test.jpeg differ