package com.tt.honeyDue.data

import androidx.compose.runtime.staticCompositionLocalOf

/**
 * Screens resolve their data source via this ambient. Production resolves
 * to the singleton [DataManager]. Tests, previews, and the parity-gallery
 * override via `CompositionLocalProvider(LocalDataManager provides fake) { ... }`.
 *
 * Uses [staticCompositionLocalOf] (not `compositionLocalOf`) because the
 * DataManager reference is stable for the app's lifetime — reading it
 * shouldn't trigger recomposition of everything below the provider.
 */
val LocalDataManager = staticCompositionLocalOf<IDataManager> { DataManager }
