assembly/composables/useWeb3Modal.ts

11 lines
242 B
TypeScript
Raw Normal View History

2021-08-31 19:23:47 +00:00
import { useModal } from "./useModal";
import Web3Modal from "~/components/modal/web3/Web3Modal.vue";
export const useWeb3Modal = () => {
const { showComponent } = useModal();
return {
open: () => showComponent(Web3Modal)
};
};