import { useSelector } from "react-redux"; 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; // const { userDetails } = useSelector((state) => state.userDetails); // const accountType = userDetails?.account_type === "FAMILY"; // console.log('mumu', data) 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 ? : }
))}
)}
); }