import { Plus } from "lucide-react"; import { useState } from "react"; import { useWallets } from "@/lib/queries"; import { CreateWalletDialog } from "./components/CreateWalletDialog"; import { WalletCard } from "./components/WalletCard"; export function WalletsPage() { const { data: wallets, isLoading } = useWallets(); const [createOpen, setCreateOpen] = useState(false); return (

Billeteras

{isLoading ? (

Cargando...

) : wallets && wallets.length > 0 ? (
{wallets.map((wallet) => ( ))}
) : (

No hay billeteras. CreĆ” una para empezar.

)}
); }