react-country-hook
Version:
A React.js Hook that provides country information for visitors
20 lines (18 loc) • 351 B
TypeScript
export type PropsType = {
name?: string;
nameAr?: string;
timezone?: string;
flagCode?: string;
callCode?: string;
default?: string;
};
export type CountryType = {
name: string;
nameAr: string;
timezone: string;
flagCode: string;
prefix: string;
callCode: string;
phoneMax: number;
phoneMin: number;
};