import React from 'react'
import { Link } from 'react-router-dom';

function WalletAction({walletItem, payment, openPopUp}) {
  return (
    <div className="counters w-full flex justify-between gap-2">
        <div className='w-1/2 flex justify-center items-center'>
        <Link
            to="transfer-fund"
            className={`${
            walletItem.code != "NAIRA" && "invisible"
            } px-4 h-10 flex justify-center items-center btn-gradient text-base rounded-full text-white`}
        >
            Spend
        </Link>
        </div>
        <div className='w-1/2 flex justify-center items-center'>
        <button
            className='px-4 h-10 flex justify-center items-center btn-gradient text-base rounded-full text-white'
            onClick={() => {
            openPopUp({
                payment: payment,
                currency: walletItem?.description,
            });
            }}
        >
            {/* <span className="">
            <svg
                xmlns="http://www.w3.org/2000/svg"
                width="38"
                height="38"
                viewBox="0 0 42 42"
                fill="none"
            >
                <path
                d="M21 0C16.8466 0 12.7865 1.23163 9.33303 3.53914C5.8796 5.84665 3.18798 9.1264 1.59854 12.9636C0.00909901 16.8009 -0.406771 21.0233 0.403518 25.0969C1.21381 29.1705 3.21386 32.9123 6.15077 35.8492C9.08767 38.7861 12.8295 40.7862 16.9031 41.5965C20.9767 42.4068 25.1991 41.9909 29.0364 40.4015C32.8736 38.812 36.1534 36.1204 38.4609 32.667C40.7684 29.2135 42 25.1534 42 21C41.994 15.4323 39.7796 10.0944 35.8426 6.15741C31.9056 2.22045 26.5677 0.00602189 21 0ZM28 22.75H22.75V28C22.75 28.4641 22.5656 28.9092 22.2374 29.2374C21.9093 29.5656 21.4641 29.75 21 29.75C20.5359 29.75 20.0908 29.5656 19.7626 29.2374C19.4344 28.9092 19.25 28.4641 19.25 28V22.75H14C13.5359 22.75 13.0908 22.5656 12.7626 22.2374C12.4344 21.9092 12.25 21.4641 12.25 21C12.25 20.5359 12.4344 20.0907 12.7626 19.7626C13.0908 19.4344 13.5359 19.25 14 19.25H19.25V14C19.25 13.5359 19.4344 13.0908 19.7626 12.7626C20.0908 12.4344 20.5359 12.25 21 12.25C21.4641 12.25 21.9093 12.4344 22.2374 12.7626C22.5656 13.0908 22.75 13.5359 22.75 14V19.25H28C28.4641 19.25 28.9093 19.4344 29.2374 19.7626C29.5656 20.0907 29.75 20.5359 29.75 21C29.75 21.4641 29.5656 21.9092 29.2374 22.2374C28.9093 22.5656 28.4641 22.75 28 22.75Z"
                //   fill="white"
                className="stroke-black fill-white"
                ></path>
            </svg>
            </span> */}
            <span className="">Add Credit</span>
        </button>
        </div>
    </div>
  )
}

export default WalletAction