export const extractLevelFromGeography = (locale, level, geographies, geographyId) => {
    var _a, _b;
    const findGeography = geographyId
        ? geographies[geographyId]
        : Object.values(geographies || {}).find((geography) => geography.level === level);
    return (_b = (_a = findGeography === null || findGeography === void 0 ? void 0 : findGeography.name) === null || _a === void 0 ? void 0 : _a[locale]) !== null && _b !== void 0 ? _b : "";
};
//# sourceMappingURL=extractLevelFromGeography.js.map