import { USE_NURSE_BANK_MOCK } from '../constants';
import type { NurseBankAccountsApi } from '../types';
import { nurseBankClientApi } from './clientApi';
import { nurseBankMockApi } from './mockApi';

/**
 * The selected NurseBankAccountsApi implementation — the single seam hooks import. Selection
 * is by config (USE_NURSE_BANK_MOCK), never by scattered `if (mock)` checks.
 */
export const nurseBankApi: NurseBankAccountsApi = USE_NURSE_BANK_MOCK ? nurseBankMockApi : nurseBankClientApi;
