import ModalStore from '@/store/ModalStore' import SessionProposalModal from '@/views/SessionProposalModal' import SessionSendTransactionModal from '@/views/SessionSendTransactionModal' import SessionRequestModal from '@/views/SessionSignModal' import SessionSignTypedDataModal from '@/views/SessionSignTypedDataModal' import { Modal as NextModal } from '@nextui-org/react' import { useSnapshot } from 'valtio' export default function Modal() { const { open, view } = useSnapshot(ModalStore.state) return ( {view === 'SessionProposalModal' && } {view === 'SessionSignModal' && } {view === 'SessionSignTypedDataModal' && } {view === 'SessionSendTransactionModal' && } ) }