package dev.ulfrx.recipe.navigation

import kotlinx.serialization.Serializable

@Serializable
sealed interface MealPlanEditorSource {
    @Serializable
    data class NewFromRecipe(
        val recipeId: String,
        val initialServings: Int = 1,
        val initialSubstitutions: Map<String, String> = emptyMap(),
    ) : MealPlanEditorSource

    @Serializable
    data class EditExistingPlan(val plannedMealId: String) : MealPlanEditorSource
}
