UNPKG

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
import { countries_default } from "./chunk-5AECN3B2.mjs"; import { __export } from "./chunk-6X3JIUEO.mjs"; // src/countries/cd.ts var cd_exports = {}; __export(cd_exports, { getCountry: () => getCountry, getCountryAndStates: () => getCountryAndStates, getStates: () => getStates }); async function getCountry() { return { ...countries_default["CD"], countryCode: "CD" }; } async function getStates() { try { const jsonTribesData = await import("./CD-JYCWONXN.mjs"); return Object.values(jsonTribesData["CD"] || {}); } catch (err) { console.warn(`\u26A0\uFE0F No tribe data found for CD:`, err.message); return []; } } async function getCountryAndStates() { const country = await getCountry(); const states = await getStates(); return { ...country, states }; } export { getCountry, getStates, getCountryAndStates, cd_exports };