import { USE_PATIENTS_MOCK } from '../constants';
import type { PatientsApi } from '../types';
import { patientsClientApi } from './clientApi';
import { patientsMockApi } from './mockApi';

/**
 * The selected PatientsApi implementation — the single seam hooks import. Selection is
 * by config (USE_PATIENTS_MOCK), never by scattered `if (mock)` checks.
 */
export const patientsApi: PatientsApi = USE_PATIENTS_MOCK ? patientsMockApi : patientsClientApi;
