Sigillum/Frontend/MainApp/components/wallet/WalletModal.tsx
2025-05-05 17:38:10 +01:00

28 lines
922 B
TypeScript

import React from "react";
import WalletSelector from "./WalletSelector";
import { X } from "lucide-react";
import { Button } from "../ui/button";
const WalletModal = ({
setShowWalletModal,
}: {
setShowWalletModal: React.Dispatch<React.SetStateAction<boolean>>;
}) => {
return (
<div className="absolute w-full z-10 h-screen left-0 top-0 flex justify-center items-center">
<div className="w-full h-full absolute top-0 ring-0 bg-black opacity-20" />
<div className="relative md:w-[30%] bg-white rounded-sm md:h-[60%] w-[95%] h-[65%] z-10 flex justify-center md:items-start items-start">
<Button
variant={"ghost"}
className="absolute right-3 top-3"
onClick={() => setShowWalletModal(false)}
>
<X />
</Button>
<WalletSelector setShowWalletModal={setShowWalletModal} />
</div>
</div>
);
};
export default WalletModal;