package dev.stave.ui.nav
import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import dev.stave.ui.metadata.MetadataHandoff
import javax.inject.Inject
/**
* Nav-scope handoff holder. Exposes the [MetadataHandoff] singleton so EarhornNavHost can
* stash the target track before navigating to the metadata screen. Kept separate from
* NowPlayingViewModel so that adding more cross-screen handoffs later stays clean.
*/
@HiltViewModel
class NavHostViewModel @Inject constructor(
val metadataHandoff: MetadataHandoff,
val localScanner: dev.stave.local.LocalMediaScanner,
) : ViewModel()