package dev.ulfrx.recipe.ui.screens.recipedetail

import dev.ulfrx.recipe.ui.components.recipe.RecipeUi

internal const val MIN_RECIPE_SERVINGS = 1
internal const val MAX_RECIPE_SERVINGS = 12

sealed interface RecipeDetailState {
    data object NotFound : RecipeDetailState

    data class Ready(
        val recipe: RecipeUi,
        val servings: Int = MIN_RECIPE_SERVINGS,
        val substitutions: Map<String, String> = emptyMap(),
    ) : RecipeDetailState
}
