You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AbstractGoogleSignInButton.js 687B

12345678910111213141516171819202122232425262728293031323334
  1. // @flow
  2. import { Component } from 'react';
  3. /**
  4. * {@code AbstractGoogleSignInButton} component's property types.
  5. */
  6. type Props = {
  7. /**
  8. * The callback to invoke when the button is clicked.
  9. */
  10. onClick: Function,
  11. /**
  12. * True if the user is signed in, so it needs to render a different label
  13. * and maybe different style (for the future).
  14. */
  15. signedIn?: boolean,
  16. /**
  17. * Function to be used to translate i18n labels.
  18. */
  19. t: Function
  20. };
  21. /**
  22. * Abstract class of the {@code GoogleSignInButton} to share platform
  23. * independent code.
  24. *
  25. * @inheritdoc
  26. */
  27. export default class AbstractGoogleSignInButton extends Component<Props> {
  28. }