import { useMutation, useQuery } from '@apollo/react-hooks' import { USER_LOGOUT, CURRENT_USER } from './graphql' import { SyntheticEvent } from 'react' interface LogoutButtonProps { title?: string } const LogoutButton = ({ title }: LogoutButtonProps) => { const [logout, { loading, error }] = useMutation(USER_LOGOUT) const { refetch } = useQuery(CURRENT_USER) return ( ) } export default LogoutButton