UNPKG

@sheerid/jslib-nightly

Version:

SheerID JavaScript Library

20 lines (18 loc) 1.05 kB
import { default as React } from 'react'; import { InjectedIntl, InjectedIntlProps } from 'react-intl'; import { InputSelectComponentProps, VerificationService } from '../../../lib/types/types'; export declare const ChangeLocaleComponent: React.ComponentClass<Pick<InputSelectComponentProps<any>, "isErrored" | "onChange" | "value" | "disabled" | "onKeyDown" | "label" | "placeholder" | "isRequired" | "options" | "suppressPlaceholder">, any> & { WrappedComponent: React.ComponentType<InputSelectComponentProps<any> & InjectedIntlProps>; }; /** * This V2 component wraps the original one * It only takes verificationService as a prop for easier/slimmer invocation and to ensure locale ends up in the viewModel */ interface ChangeLocaleV2Props { verificationService: VerificationService; intl: InjectedIntl; } export declare const ChangeLocaleV2Component: React.ComponentClass<Pick<ChangeLocaleV2Props, "verificationService">, any> & { WrappedComponent: React.ComponentType<ChangeLocaleV2Props & InjectedIntlProps>; }; export {};