UNPKG

@5calls/react-components

Version:

React component library for 5 Calls webapp

25 lines (24 loc) 911 B
/// <reference types="react" /> import * as React from 'react'; import { UserProfile, Auth0Config } from '../shared/model'; import { LoginService } from './LoginService'; export interface CustomLoginProps { readonly auth0Config: Auth0Config; readonly userProfile?: UserProfile; readonly eventEmitter: EventEmitter; logoutHandler: () => void; refreshHandler: (email: string, subscribe: boolean) => void; } export interface CustomLoginState { } export declare class CustomLogin extends React.Component<CustomLoginProps, CustomLoginState> { loginService: LoginService; constructor(props: CustomLoginProps); signup: (email?: string, password?: string) => Promise<string>; login: (email?: string, password?: string) => Promise<string>; twitterLogin: () => void; facebookLogin: () => void; logout: () => void; showEmail: () => boolean; render(): JSX.Element; }