import UserDeleteForm from 'components/pages/settings/users/UserDeleteForm'; import { useRouter } from 'next/router'; import { useState } from 'react'; import { Button, Form, FormRow, Modal } from 'react-basics'; export default function UserDelete({ userId, onSave }) { const [modal, setModal] = useState(null); const router = useRouter(); const handleDelete = async () => { onSave(); await router.push('/users'); }; const handleClose = () => setModal(null); return (
); }