UNPKG

@rocket.chat/onboarding-ui

Version:

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

14 lines 873 B
import type { ReactElement } from 'react'; import type { FieldPathValue, SubmitHandler, Validate } from 'react-hook-form'; import type { NewAccountPayload } from '../../forms/NewAccountForm/NewAccountForm'; type CreateNewAccountPageProps = { initialValues?: Omit<NewAccountPayload, 'password'>; validateEmail: Validate<FieldPathValue<NewAccountPayload, 'email'>, NewAccountPayload>; validatePassword: Validate<FieldPathValue<NewAccountPayload, 'password'>, NewAccountPayload>; validateConfirmationPassword: Validate<FieldPathValue<NewAccountPayload, 'confirmPassword'>, NewAccountPayload>; onSubmit: SubmitHandler<NewAccountPayload>; onLogin: () => void; }; declare const CreateNewAccountPage: ({ onLogin, ...props }: CreateNewAccountPageProps) => ReactElement; export default CreateNewAccountPage; //# sourceMappingURL=CreateNewAccountPage.d.ts.map