import { MutationHookOptions } from '@apollo/client' ; import { Login as LoginType , LoginVariables , } from '../../generated/server/Login' ; import { LOGIN } from '../../graphql/server/auth' ; import { useMutation } from '../../utils' ; export function useLogin ( options ? ) { const [ login , { loading , error } ] = useMutation < LoginType , LoginVariables > ( LOGIN , { ... options , } ) ; return { login , loading , error } ; }