import useApi from 'hooks/useApi'; import { Button, Form, FormRow, FormButtons, FormInput, SubmitButton, TextField, } from 'react-basics'; const CONFIRM_VALUE = 'RESET'; export default function WebsiteResetForm({ websiteId, onSave, onClose }) { const { post, useMutation } = useApi(); const { mutate, error, isLoading } = useMutation(data => post(`/websites/${websiteId}/reset`, data), ); const handleSubmit = async data => { mutate(data, { onSuccess: async () => { onSave(); }, }); }; return (
); }