package dev.ulfrx.recipe.ui.screens.shopping

import androidx.lifecycle.ViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow

/**
 * UI state for [ShoppingScreen]. Phase 2.1 ships only the empty state. Phase 9
 * (Shopping List & Session Log) extends this with list items + session actions.
 */
data class ShoppingState(
    val isEmpty: Boolean = true,
)

class ShoppingViewModel : ViewModel() {
    private val _state = MutableStateFlow(ShoppingState())
    val state: StateFlow<ShoppingState> = _state.asStateFlow()
}
