frontend phase 14

This commit is contained in:
hamid
2026-07-10 18:46:16 +03:30
parent 85488bc25b
commit bc51cf59b4
73 changed files with 3582 additions and 13 deletions
+11
View File
@@ -0,0 +1,11 @@
import { USE_TICKETS_MOCK } from '../constants';
import type { TicketsApi } from '../types';
import { ticketsClientApi } from './clientApi';
import { ticketsMockApi } from './mockApi';
/**
* The selected `TicketsApi` implementation — the single seam the hooks import. Selection is by config
* (`USE_TICKETS_MOCK`), never scattered `if (mock)` checks. Mock-primary this phase (linked bookings are
* mock-primary + REQ-028 summary gaps); the swap is this one line.
*/
export const ticketsApi: TicketsApi = USE_TICKETS_MOCK ? ticketsMockApi : ticketsClientApi;