package com.example.elva.ui.responses

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.launch

@HiltViewModel
class ResponsesViewModel @Inject constructor() : ViewModel() {

    private val _state = MutableStateFlow(ResponsesState())
    val state: StateFlow<ResponsesState> = _state

    fun loadResponses() {
        viewModelScope.launch {
            _state.value = ResponsesState(items = listOf("Ответ на алерт"))
        }
    }
}

data class ResponsesState(
    val items: List<String> = emptyList()
)
