woocommerce/packages/woocommerce-blocks/assets/js/base/components/country-input/CountryInputProps.ts

16 lines
366 B
TypeScript
Raw Normal View History

2021-12-10 12:03:04 +00:00
export interface CountryInputProps {
className?: string;
label: string;
id: string;
autoComplete?: string;
value: string;
onChange: ( value: string ) => void;
required?: boolean;
errorMessage?: string;
errorId: null | 'shipping-missing-country';
}
export type CountryInputWithCountriesProps = CountryInputProps & {
countries: Record< string, string >;
};