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
@@ -0,0 +1,13 @@
import { USE_NOTIFICATIONS_MOCK } from '../constants';
import type { NotificationsApi } from '../types';
import { notificationsClientApi } from './clientApi';
import { notificationsMockApi } from './mockApi';
/**
* The selected `NotificationsApi` implementation — the single seam the hooks import. Selection is by config
* (`USE_NOTIFICATIONS_MOCK`), never scattered `if (mock)` checks. Mock-primary this phase (nothing dispatches
* notifications client-side yet); the swap is this one line.
*/
export const notificationsApi: NotificationsApi = USE_NOTIFICATIONS_MOCK
? notificationsMockApi
: notificationsClientApi;