Update project files
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import { CountryCode, CountryConfig } from '../types';
|
||||
|
||||
export const COUNTRIES: CountryConfig[] = [
|
||||
{
|
||||
code: 'GT',
|
||||
name: 'Guatemala',
|
||||
flag: import.meta.env.BASE_URL + 'gt-flag.png',
|
||||
currency: 'GTQ',
|
||||
locale: 'es-GT',
|
||||
enabled: true,
|
||||
},
|
||||
{
|
||||
code: 'TT',
|
||||
name: 'Trinidad y Tobago',
|
||||
flag: import.meta.env.BASE_URL + 'tt-flag.png',
|
||||
currency: 'TTD',
|
||||
locale: 'en-TT',
|
||||
enabled: false,
|
||||
},
|
||||
];
|
||||
|
||||
export const DEFAULT_COUNTRY_CODE: CountryCode = 'GT';
|
||||
|
||||
export function getCountryConfig(code: CountryCode): CountryConfig {
|
||||
return COUNTRIES.find((country) => country.code === code) ?? COUNTRIES[0];
|
||||
}
|
||||
Reference in New Issue
Block a user