@rocket.chat/onboarding-ui
Version:
Set of components and functions for the onboarding experience on Rocket.Chat
21 lines • 915 B
TypeScript
import type { ReactElement } from 'react';
import type { FieldPathValue, SubmitHandler, Validate } from 'react-hook-form';
export type RegisterServerPayload = {
email: string;
agreement: boolean;
updates: boolean;
};
type RegisterServerFormProps = {
currentStep: number;
stepCount: number;
initialValues?: Partial<RegisterServerPayload>;
validateEmail?: Validate<FieldPathValue<RegisterServerPayload, 'email'>, RegisterServerPayload>;
onSubmit: SubmitHandler<RegisterServerPayload>;
onClickRegisterOffline: () => void;
termsHref?: string;
policyHref?: string;
offline?: boolean;
};
declare const RegisterServerForm: ({ currentStep, stepCount, initialValues, validateEmail, offline, onSubmit, termsHref, policyHref, onClickRegisterOffline, }: RegisterServerFormProps) => ReactElement;
export default RegisterServerForm;
//# sourceMappingURL=RegisterServerForm.d.ts.map