UNPKG

@rocket.chat/onboarding-ui

Version:

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

19 lines 962 B
import type { ReactElement, ReactNode } from 'react'; import type { FieldPathValue, SubmitHandler, Validate } from 'react-hook-form'; import type { AdminInfoPayload } from '../../forms/AdminInfoForm/AdminInfoForm'; type AdminInfoPageProps = { title?: ReactNode; description?: ReactNode; currentStep: number; stepCount: number; passwordRulesHint: string; keepPosted?: boolean; initialValues?: Omit<AdminInfoPayload, 'password'>; validateUsername: Validate<FieldPathValue<AdminInfoPayload, 'username'>, AdminInfoPayload>; validateEmail: Validate<FieldPathValue<AdminInfoPayload, 'email'>, AdminInfoPayload>; validatePassword: Validate<FieldPathValue<AdminInfoPayload, 'password'>, AdminInfoPayload>; onSubmit: SubmitHandler<AdminInfoPayload>; }; declare const AdminInfoPage: ({ title, description, ...props }: AdminInfoPageProps) => ReactElement; export default AdminInfoPage; //# sourceMappingURL=AdminInfoPage.d.ts.map