import * as React from "react" ; import StyledFirebaseAuth from "react-firebaseui/StyledFirebaseAuth" ; import { observer } from "mobx-react" ; import * as firebase from "firebase/app" ; import 'firebase/auth' ; const uiConfig = { signInFlow : "popup" , signInSuccessUrl : "/" , signInOptions : [ firebase . auth . EmailAuthProvider . PROVIDER_ID ] } ; /**
 * Sample Firebase login component
 */ @ observer export default class Login extends React . Component { render ( ) { return ( < StyledFirebaseAuth uiConfig = { uiConfig } firebaseAuth = { firebase . auth ( ) } / > ) ; } }