Download spectrum/src/components/loginButtonSet/google.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 566 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/loginButtonSet/google.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/src/components/loginButtonSet/google.js
-
curl -L -o google.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/loginButtonSet/google.js
566 Bytes
| // @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> | |
| ); | |
| }; | |