import { USE_GEOGRAPHY_MOCK } from '../constants';
import type { GeographyApi } from '../types';
import { geographyClientApi } from './clientApi';
import { geographyMockApi } from './mockApi';

/**
 * The selected GeographyApi implementation — the single seam the hooks import. Selection is by
 * config (USE_GEOGRAPHY_MOCK), never by scattered `if (mock)` checks.
 */
export const geographyApi: GeographyApi = USE_GEOGRAPHY_MOCK ? geographyMockApi : geographyClientApi;
