@rocket.chat/onboarding-ui
Version:
Set of components and functions for the onboarding experience on Rocket.Chat
16 lines • 555 B
TypeScript
import type { ReactElement } from 'react';
import type { SubmitHandler } from 'react-hook-form';
export type TotpFormPayload = {
totpCode: string;
backupCode: string;
};
type TotpFormProps = {
initialValues?: TotpFormPayload;
onChangeTotpForm: () => void;
isBackupCode?: boolean;
formError?: string;
onSubmit: SubmitHandler<TotpFormPayload>;
};
declare const TotpForm: ({ onSubmit, initialValues, isBackupCode, onChangeTotpForm, }: TotpFormProps) => ReactElement;
export default TotpForm;
//# sourceMappingURL=TotpForm.d.ts.map