package de.krisenvorrat.app.ui.warnings

import de.krisenvorrat.app.domain.model.ExpiryWarning

internal data class WarningsUiState(
    val expiryWarnings: List<ExpiryWarning> = emptyList(),
    val isLoading: Boolean = true
) {
    val hasExpiryWarnings: Boolean
        get() = expiryWarnings.isNotEmpty()

    val totalWarningCount: Int
        get() = expiryWarnings.size

    val hasWarnings: Boolean
        get() = hasExpiryWarnings
}
