// @flow import React from 'react'; import { translate } from '../../base/i18n'; import AbstractGoogleSignInButton from './AbstractGoogleSignInButton'; /** * A React Component showing a button to sign in with Google. * * @augments Component */ class GoogleSignInButton extends AbstractGoogleSignInButton { /** * Implements React's {@link Component#render()}. * * @inheritdoc * @returns {ReactElement} */ render() { const { t } = this.props; return (
{
{ t(this.props.signedIn ? 'liveStreaming.signOut' : 'liveStreaming.signIn') }
); } } export default translate(GoogleSignInButton);