package com.fabledsword.minstrel.cache.mutations

import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject

/**
 * Hilt-injectable wrapper exposing [MutationQueue.userEnqueueHints] to
 * ShellScaffold. The queue itself is an app-scoped singleton; this VM
 * just bridges its SharedFlow into a `hiltViewModel()`-resolvable
 * surface so ShellScaffold can collect it without an EntryPoint
 * accessor. Mirrors PlaybackErrorViewModel.
 */
@HiltViewModel
class OfflineWriteHintViewModel @Inject constructor(
    mutationQueue: MutationQueue,
) : ViewModel() {
    val messages: Flow<String> = mutationQueue.userEnqueueHints
}
