import {useState} from "react"; import { Button, Modal, ModalBody, ModalFooter, ModalHeader} from "react-bootstrap" import errorLogo from "../views/images/error.png"; const RestartModal = (props:any) => { const {isOpen,name,closeModal, } = props const [password , setPassword] = useState("") const [errorModal,setErrorModal] = useState(false) const hamdleChangePassword = (event:any) => { const { target } = event; const { name } = target; setPassword(target.value) } const verifyPassword = (action:any) => { // e.preventDefault(); closeModal(false) } const restartNode = (pwd:string) => { // e.preventDefault(); closeModal() }; const errorToggle= () =>{ setErrorModal(false) } return <> Error Invalid password, please try again

Restart {name} You are about to restart the {name}
This process will take a few hours



} export default RestartModal