import React, { useState } from "react"; import { Link } from "react-router-dom"; import authProfilePic from "../../../assets/images/auth-profile-picture.png"; import followerProfile from "../../../assets/images/profile-2.png"; import profileBanner from "../../../assets/images/profile-cover-2.png"; import collections from "../../../data/collectionplan_data.json"; import marketPlace from "../../../data/marketplace_data.json"; import products from "../../../data/product_data.json"; import ModalCom from "../../Helpers/ModalCom"; import Layout from "../../Partials/Layout"; import ActivitiesTab from "./ActivitiesTab"; import CollectionTab from "./CollectionTab"; import CreatedTab from "./CreatedTab"; import HiddenProductsTab from "./HiddenProductsTab"; import OnSaleTab from "./OnSaleTab"; import OwnTab from "./OwnTab"; export default function UserProfile() { const onSaleProducts = marketPlace.data; const CreatedSell = marketPlace.data; const CreatedBits = products.datas; const ownProducts = products.datas; const collectionProducts = collections.data; const tabs = [ { id: 1, name: "onsale", content: "On Sale", }, { id: 2, name: "owned", content: "Owned", }, { id: 3, name: "created", content: "Created", }, { id: 4, name: "hidden", content: "Hidden", }, { id: 5, name: "collection", content: "Collection", }, { id: 6, name: "activity", content: "Activity", }, ]; const [tab, setTab] = useState(tabs[0].name); const tabHandler = (value) => { setTab(value); }; const [showFollowerModal, setValue] = useState(false); const openFollowerModal = () => { setValue(!showFollowerModal); }; return ( <>
{/* profile picture */}

Rafiqul Islam Suvo

Autoglyphs are fitting the first “on-chain” to the find generative art on the Ethereum blockchain Read More

49 Followers

35 Following

914 Favorites

    {tabs && tabs.length > 0 && tabs.map((tabValue) => (
  • tabHandler(tabValue.name)} > {tabValue.content} 16
  • ))}
Upload Product
{tab === "onsale" ? ( ) : tab === "owned" ? ( ) : tab === "created" ? ( ) : tab === "hidden" ? ( ) : tab === "collection" ? ( ) : tab === "activity" ? ( ) : ( "" )}
{showFollowerModal && (

Followers

Cody Fisher

34.k followers

Wade Warren

34.k followers

Guy Hawkins

34.k followers

Jane Cooper

34.k followers

Eleanor Pena

34.k followers

Eleanor Pena

34.k followers

Robert Fox

34.k followers

Jacob Jones

34.k followers

Robert Fox

34.k followers

Wade Warren

34.k followers

Jerome Bell

34.k followers

)}
); }