import { USE_ADMIN_MOCK } from '../constants'; import type { AdminApi } from '../types'; import { adminClientApi } from './clientApi'; import { adminMockApi } from './mockApi'; /** * The selected `AdminApi` implementation — the single seam the hooks import. Mock-primary this phase * (REQ-029/030/031); flipping to the real client is this one line once the upstream endpoints/columns land. */ export const adminApi: AdminApi = USE_ADMIN_MOCK ? adminMockApi : adminClientApi;