import React, { useCallback, useState } from "react"; import ConfirmNairaWithdraw from "./Popup/ConfirmNairaWithdraw"; import NairaWithdraw from "./Popup/NairaWithdraw"; import usersService from "../../services/UsersService"; function WalletAction({ walletItem, payment, openPopUp }) { const [showNairaWithdraw, setShowNairaWithdraw] = useState(false); // DETERMINES WHEN NAIRA WITHDRAWAL POPS UP const [countries, setCountries] = useState([]); const [showConfirmNairaWithdraw, setShowConfirmNairaWithdraw] = useState({ show: false, state: {}, }); // DETERMINES WHEN CONFIRM NAIRA WITHDRAWAL POPS UP const userApi = new usersService(); // Get Country Api const getCountryList = useCallback(async () => { const res = await userApi.getSignupCountryData(); try { if (res.status === 200) { const { signup_country } = await res.data; setCountries(signup_country); } else if (res.data.result !== 100) { setCountries("Nothing see here!"); } } catch (error) { throw new Error(error); } }, []); return (