@rocket.chat/onboarding-ui
Version:
Set of components and functions for the onboarding experience on Rocket.Chat
24 lines • 1.01 kB
TypeScript
import type { SelectOption } from '@rocket.chat/fuselage';
import type { ReactElement } from 'react';
import type { FieldPathValue, SubmitHandler, Validate } from 'react-hook-form';
type RequestTrialPayload = {
email: string;
organizationName: string;
organizationSize: string;
country: string;
updates: boolean;
agreement: boolean;
};
type RequestTrialFormProps = {
defaultValues?: RequestTrialPayload;
organizationSizeOptions: SelectOption[];
countryOptions: SelectOption[];
onSubmit: SubmitHandler<RequestTrialPayload>;
onManageWorkspaceClick: () => void;
validateEmail: Validate<FieldPathValue<RequestTrialPayload, 'email'>, RequestTrialPayload>;
termsHref?: string;
policyHref?: string;
};
declare const RequestTrialForm: ({ defaultValues, organizationSizeOptions, countryOptions, onSubmit, validateEmail, termsHref, policyHref, }: RequestTrialFormProps) => ReactElement;
export default RequestTrialForm;
//# sourceMappingURL=RequestTrialForm.d.ts.map