'use client' import {useActionState} from 'react' import {googleAuthenticate} from '@/actions/auth/google-login' import GoogleIcon from '@/components/shared/icons/google' import {Button} from '@/ui/button' const GoogleLogin = () => { const [errorMsgGoogle, dispatchGoogle] = useActionState( googleAuthenticate, undefined ) //googleAuthenticate hook return (

{errorMsgGoogle}

) } export default GoogleLogin