frontend phase 14
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user