import { USE_PARTNER_MOCK } from '../constants';
import type { PartnerCenterApi } from '../types';
import { partnerCenterClientApi } from './clientApi';
import { partnerCenterMockApi } from './mockApi';

/**
 * The selected `PartnerCenterApi` implementation — the single seam the hooks import. Mock-primary this
 * phase (REQ-032/033); the swap to the real client is this one line.
 */
export const partnerCenterApi: PartnerCenterApi = USE_PARTNER_MOCK ? partnerCenterMockApi : partnerCenterClientApi;
