package dev.stave.ui.metadata
import dev.stave.domain.model.DidlItem
import javax.inject.Inject
import javax.inject.Singleton
/**
* Single-item "handoff" slot for MetadataScreen. A callsite sets [pending] with the target
* track just before navigating to the metadata destination; the destination's ViewModel
* reads it on first load and then clears it.
*
* Using this rather than passing the track through the navigation route because [DidlItem]
* isn't Parcelable and adding kotlin-parcelize for a single transient handoff isn't worth
* the build-config cost. Single-threaded TV app → no real risk of racing writers.
*/
@Singleton
class MetadataHandoff @Inject constructor() {
var pending: DidlItem.Track? = null
}