import { observer } from "mobx-react-lite"; import { useEffect } from "react"; import { ImageView } from "../payment/TokenCard"; import { PopupButton } from "../styles"; import Popup from "../Popup"; export const WCRequest = observer(({ deeplink, name, icon, onClose, task }: { deeplink?: string; name: string; icon: string; onClose: () => void; task: Promise }) => { useEffect(() => { task.finally(onClose); }, [task]); return (

{name}

Application request you
to approve some action in your wallet

{!!deeplink && window.open(deeplink, "_blank")}>Open wallet}
); });