import { USE_ADDRESSES_MOCK } from '../constants';
import type { AddressesApi } from '../types';
import { addressesClientApi } from './clientApi';
import { addressesMockApi } from './mockApi';

/**
 * The selected AddressesApi implementation — the single seam hooks import. Selection is by
 * config (USE_ADDRESSES_MOCK), never by scattered `if (mock)` checks.
 */
export const addressesApi: AddressesApi = USE_ADDRESSES_MOCK ? addressesMockApi : addressesClientApi;
