UNPKG

@rocket.chat/onboarding-ui

Version:

Set of components and functions for the onboarding experience on Rocket.Chat

25 lines 919 B
import type { ReactElement } from 'react'; import type { SubmitHandler } from 'react-hook-form'; import type { LoginFormPayload } from '../../forms/LoginForm/LoginForm'; import type { TotpFormPayload } from '../../forms/TotpForm/TotpForm'; type TotpFormProps = { initialValues?: TotpFormPayload; onChangeTotpForm: () => void; isBackupCode?: boolean; formError?: string; onSubmit: SubmitHandler<TotpFormPayload>; }; type LoginPageProps = { initialValues?: Omit<LoginFormPayload, 'password'>; onChangeForm: () => void; onResetPassword: () => void; formError?: string; isPasswordLess: boolean; isMfa: boolean; onCreateAccount: () => void; mfaProps?: TotpFormProps; onSubmit: SubmitHandler<LoginFormPayload>; }; declare const LoginPage: ({ onCreateAccount, ...props }: LoginPageProps) => ReactElement; export default LoginPage; //# sourceMappingURL=LoginPage.d.ts.map