File size: 566 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// @flow
import * as React from 'react';
import type { ButtonProps } from './';
import { GoogleButton, Label, A } from './style';
import Icon from 'src/components/icon';

export const GoogleSigninButton = (props: ButtonProps) => {
  const { href, preferred, showAfter, onClickHandler } = props;

  return (
    <A onClick={() => onClickHandler && onClickHandler('google')} href={href}>
      <GoogleButton showAfter={showAfter} preferred={preferred}>
        <Icon glyph={'google'} />
        <Label>Log in with Google</Label>
      </GoogleButton>
    </A>
  );
};