import { Link, useLocation, useNavigate } from "react-router-dom"; import Icons from "../Helpers/Icons"; // import bank1 from "../../assets/images/bank-1.png"; // import bank2 from "../../assets/images/bank-2.png"; // import bank3 from "../../assets/images/bank-3.png"; // import bank4 from "../../assets/images/bank-4.png"; import Accordion from "../Helpers/Accordion"; import { PriceFormatter } from "../Helpers/PriceFormatter"; import localImgLoad from "../../lib/localImgLoad"; import { useSelector } from "react-redux"; export default function WalletHeader(props) { const {userDetails: { account_type }} = useSelector((state) => state?.userDetails); // debugger; //props.myWalletList.result_list let { pathname } = useLocation(); let navigate = useNavigate(); const onWalletClick = () => { if (pathname == "/my-wallet") props.setBalanceDropdown.toggle(); else navigate("/my-wallet", { replace: true }); } return ( <> {account_type == 'FULL' ?
props.handlerBalance()} className="flex items-center lg:justify-between justify-center w-full h-full" >

Wallet

Wallet

    {props.myWalletList && props.myWalletList?.length > 0 && props.myWalletList.map((value, index) => { let image = value.code ? `${value.code.toLocaleLowerCase()}.svg` : 'default.png' return(
  • {value.description}

    {PriceFormatter(value.amount * 0.01, value.code)}

  • ) } )} {/*
  • */} {/*
    */} {/*
    */} {/* */} {/* */} {/*
    */} {/*
    */} {/*

    */} {/* MetaMask*/} {/*

    */} {/*
    */} {/*
    */} {/*
    */} {/*

    */} {/* 75,320 ETH*/} {/*

    */} {/*

    */} {/* (773.69 USD)*/} {/*

    */} {/*
    */} {/*
*/} {/**/} {/*
  • */} {/*
    */} {/*
    */} {/* */} {/* */} {/*
    */} {/*
    */} {/*

    */} {/* Coinbase Wallet*/} {/*

    */} {/*
    */} {/*
    */} {/*
    */} {/*

    */} {/* 56,124 ETH*/} {/*

    */} {/*

    */} {/* (773.69 USD)*/} {/*

    */} {/*
    */} {/*
  • */} {/**/} {/*
  • */} {/*
    */} {/*
    */} {/* */} {/* */} {/*
    */} {/*
    */} {/*

    */} {/* Bitski*/} {/*

    */} {/*
    */} {/*
    */} {/*
    */} {/*

    */} {/* 99,123 ETH*/} {/*

    */} {/*

    */} {/* (773.69 USD)*/} {/*

    */} {/*
    */} {/*
  • */} {/**/} {/*
  • */} {/*
    */} {/*
    */} {/* */} {/* */} {/*
    */} {/*
    */} {/*

    */} {/* WalletConnect*/} {/*

    */} {/*
    */} {/*
    */} {/*
    */} {/*

    */} {/* 43,728 ETH*/} {/*

    */} {/*

    */} {/* (773.69 USD)*/} {/*

    */} {/*
    */} {/* */} {/*
  • */}
    {/* */} Manage
    :
    navigate("/family-wallet", { replace: true })} className="flex items-center lg:justify-between justify-center w-full h-full" >

    Wallet

    }
    ); }