import { getRedirectResult , googleLoginWithFirebasePopUp , loginWithFirebaseRedirect , } from './functions' ; import { FIREBASE_GOOGLE_LOGIN_POPUP , GET_LOGIN_REDIRECT_RESULT , TRIGGER_LOGIN_WITH_REDIRECT , } from './types' ; export const triggerGoogleLoginWithRedirect = ( ) => ( dispatch ) => { dispatch ( { type : TRIGGER_LOGIN_WITH_REDIRECT , firebase : loginWithFirebaseRedirect , } ) ; } ; export const loginWithGoogleFirebaseActionPopUp = ( ) => ( dispatch ) => { dispatch ( { type : FIREBASE_GOOGLE_LOGIN_POPUP , payload : { } , firebase : googleLoginWithFirebasePopUp , fallback : triggerGoogleLoginWithRedirect , } ) ; } ; export const getGoogleLoginRedirectResult = ( ) => ( dispatch ) => { dispatch ( { type : GET_LOGIN_REDIRECT_RESULT , firebase : getRedirectResult , } ) ; } ;