{"size": 393, "ext": "js", "max_stars_repo_path": "src/components/SignIn.js", "max_stars_repo_name": "jack-white9/fireside-chat-app", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/SignIn.js", "max_issues_repo_name": "jack-white9/fireside-chat-app", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/SignIn.js", "max_forks_repo_name": "jack-white9/fireside-chat-app", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.5625, "max_line_length": 98, "alphanum_fraction": 0.6717557252}
import firebase from 'firebase/compat/app'
import 'firebase/compat/auth'

const SignIn = () => {
    const handleClick = () => {
        const provider = new firebase.auth.GoogleAuthProvider()
        firebase.auth().signInWithPopup(provider)
    }

    return (
        <button onClick={handleClick} className="main__login--button">Sign in with Google</button>
    )
}

export default SignIn
