african-states-and-tribes
Version:
This project provides comprehensive insights into African countries, the origins of various tribes, and their geographic distributions. Built to celebrate and document Africa’s rich multicultural landscape, it allows users to explore the continent’s diver
45 lines (42 loc) • 897 B
JavaScript
import {
countries_default
} from "./chunk-5AECN3B2.mjs";
import {
__export
} from "./chunk-6X3JIUEO.mjs";
// src/countries/et.ts
var et_exports = {};
__export(et_exports, {
getCountry: () => getCountry,
getCountryAndStates: () => getCountryAndStates,
getStates: () => getStates
});
async function getCountry() {
return {
...countries_default["ET"],
countryCode: "ET"
};
}
async function getStates() {
try {
const jsonTribesData = await import("./ET-HXCBRBHN.mjs");
return Object.values(jsonTribesData["ET"] || {});
} catch (err) {
console.warn(`\u26A0\uFE0F No tribe data found for ET:`, err.message);
return [];
}
}
async function getCountryAndStates() {
const country = await getCountry();
const states = await getStates();
return {
...country,
states
};
}
export {
getCountry,
getStates,
getCountryAndStates,
et_exports
};