import { SyntheticEvent } from "react" import { useMutation } from "@apollo/react-hooks" import { useFormHandler, TextInput } from "../form/forms" import { CURRENT_USER, USER_EDIT } from "./graphql" import { UserProps } from "./props" import { userValidation } from "./validation" const initialData = { name: '', email: '', password: '', passwordAgain: '' } const UserEditForm = ({ user }: UserProps) => { const [updateUser, userEdit] = useMutation(USER_EDIT) const { inputProps, values } = useFormHandler({ ...initialData, ...user }) return (
) } export default UserEditForm