frontend phase 12

This commit is contained in:
hamid
2026-07-10 14:48:15 +03:30
parent 67c028562e
commit 6186f54294
34 changed files with 2363 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
import { USE_PAYOUTS_MOCK } from '../constants';
import type { PayoutsApi } from '../types';
import { payoutsClientApi } from './clientApi';
import { payoutsMockApi } from './mockApi';
/**
* The selected `PayoutsApi` implementation — the single seam the hooks import. Selection is by config
* (`USE_PAYOUTS_MOCK`), never by scattered `if (mock)` checks. Mock-primary this phase (REQ-025 gaps).
*/
export const payoutsApi: PayoutsApi = USE_PAYOUTS_MOCK ? payoutsMockApi : payoutsClientApi;