import React, { useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import background from "../../assets/images/bg-sky-blue.jpg"; //shape/balance-bg.svg"; import localImgLoad from "../../lib/localImgLoad"; import { tableReload } from "../../store/TableReloads"; import { PriceFormatter } from "../Helpers/PriceFormatter"; import WalletAction from "./WalletAction"; /** * Renders a card displaying information about a wallet item. */ export default function WalletItemCardFamily({ walletItem, payment, countries }) { const dispatch = useDispatch(); /** * Opens the credit popup. * @param {Object} value - The value object. */ /** * Closes the credit popup and dispatches a table reload action. */ const currentWalletCurrency = countries?.filter((country) => country.code === walletItem.country); const image = walletItem.code ? `${walletItem.code.toLowerCase()}.svg` : "default.png"; return ( <>
currency-icon

Current Balance

{PriceFormatter( walletItem.amount * 0.01, walletItem.code, undefined, "text-[2rem]" )}

); }