import LoadingSpinner from "../Spinners/LoadingSpinner"; import WalletItemCard from "./WalletItemCard"; import WalletItemCardVirtual from './walletvirtual/WalletItemCardVirtual'; /** * Renders a list of wallet items or a loading spinner depending on the state of the `wallet` object. */ export default function WalletBox({ wallet, payment, countries }) { const { loading, data } = wallet; // console.log('LOG', data[0]?.extra_actions?.SPEND_FROM_BALANCE[0]) // const { userDetails } = useSelector((state) => state.userDetails); // const accountType = userDetails?.account_type === "FAMILY"; return (
{/* xl:grid-cols[repeat(auto-fill,_minmax(354px,_1fr))] min-[1440px]:grid-cols-[repeat(auto-fill,_minmax(415px,_1fr))] */} {loading ? (
) : (
{ data?.length > 0 && data.map((item, index) => (
{item.country ? : }
))}
)}
); }