import {Button, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, TextField} from "@mui/material"; import * as React from 'react'; export default function Prompt({open, setOpen}) { const handleEnterClose = (e) => { if (e.key === 'Enter') { handleClose(); } } const handleClose = () => { // @ts-ignore const passphrase = ""+document.getElementById("passphrase").value; sessionStorage.setItem("key", passphrase); setOpen(passphrase); }; return (