woocommerce/packages/woocommerce-blocks/assets/js/base/components/country-input/CountryInputProps.ts
2021-12-10 12:03:04 +00:00

16 lines
366 B
TypeScript

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 >;
};