You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
274 B

import { allCountries } from "country-region-data";
export interface Region {
code: string;
name: string;
}
const getRegionCodes = (): Region[] => {
return allCountries.map((country) => ({
name: country[0],
code: country[1]
}));
};
export default getRegionCodes;