@sheerid/jslib-nightly
Version:
SheerID JavaScript Library
24 lines (23 loc) • 1.05 kB
TypeScript
import { default as React } from 'react';
import { InjectedIntl, InjectedIntlProps } from 'react-intl';
import { FormSelectChoice, VerificationService } from '../../../lib/types/types';
interface ChangeLocaleProps {
value: FormSelectChoice;
options: FormSelectChoice[];
onChange: (localeChoice: FormSelectChoice) => any;
}
export declare const ChangeLocaleComponent: React.ComponentClass<Pick<ChangeLocaleProps, keyof ChangeLocaleProps>, any> & {
WrappedComponent: React.ComponentType<ChangeLocaleProps & 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 {};