@sheerid/jslib-nightly
Version:
SheerID JavaScript Library
19 lines (17 loc) • 869 B
TypeScript
import { default as React } from 'react';
import { InjectedIntl } from 'react-intl';
import { VerificationService, Country, FormSelectChoice, ViewModel } from '../../../lib/types/types';
type CountryComponentWrapperProps = {
verificationService: VerificationService;
intl: InjectedIntl;
viewModelDraftDecorator?: (draft: ViewModel, countryChoice?: FormSelectChoice<Country, string>) => void;
disabled?: boolean;
};
type DeprecatedProps = {
viewModel?: ViewModel;
nextFocusField?: string;
};
export declare const CountryComponentWrapper: React.ComponentClass<Pick<CountryComponentWrapperProps & DeprecatedProps, "disabled" | "verificationService" | "viewModelDraftDecorator" | keyof DeprecatedProps>, any> & {
WrappedComponent: React.ComponentType<CountryComponentWrapperProps & DeprecatedProps & ReactIntl.InjectedIntlProps>;
};
export {};