mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
34 lines
795 B
TypeScript
34 lines
795 B
TypeScript
import React, { Component } from 'react';
|
|
import { WithTranslation } from 'react-i18next';
|
|
|
|
/**
|
|
* {@code AbstractGoogleSignInButton} Component's property types.
|
|
*/
|
|
interface IProps extends WithTranslation {
|
|
|
|
/**
|
|
* The callback to invoke when the button is clicked.
|
|
*/
|
|
onClick: (e?: React.MouseEvent) => void;
|
|
|
|
/**
|
|
* True if the user is signed in, so it needs to render a different label
|
|
* and maybe different style (for the future).
|
|
*/
|
|
signedIn?: boolean;
|
|
|
|
/**
|
|
* The text to display within {@code GoogleSignInButton}.
|
|
*/
|
|
text?: string;
|
|
}
|
|
|
|
/**
|
|
* Abstract class of the {@code GoogleSignInButton} to share platform
|
|
* independent code.
|
|
*
|
|
* @inheritdoc
|
|
*/
|
|
export default class AbstractGoogleSignInButton extends Component<IProps> {
|
|
}
|