import { USE_PROFILES_MOCK } from '../constants';
import type { ProfilesApi } from '../types';
import { profilesClientApi } from './clientApi';
import { profilesMockApi } from './mockApi';

/**
 * The selected ProfilesApi implementation — the single seam hooks import. Selection is by
 * config (USE_PROFILES_MOCK), never by scattered `if (mock)` checks.
 */
export const profilesApi: ProfilesApi = USE_PROFILES_MOCK ? profilesMockApi : profilesClientApi;
