wallet-connect-web-examples/wallets/react-wallet-v2/src/components/Modal.tsx

16 lines
438 B
TypeScript
Raw Normal View History

2022-02-07 13:34:36 +00:00
import ModalStore from '@/store/ModalStore'
import { Modal as NextModal } from '@nextui-org/react'
import { useSnapshot } from 'valtio'
export default function Modal() {
const { open } = useSnapshot(ModalStore.state)
return (
<NextModal open={open} onClose={ModalStore.close}>
<NextModal.Header></NextModal.Header>
<NextModal.Body></NextModal.Body>
<NextModal.Footer></NextModal.Footer>
</NextModal>
)
}