Preparing search index...

    Interface RecipeNutritionPropsInput

    Builds props for RecipeNutrition component based on current mode

    Handles mode-specific behavior:

    • readOnly: Displays nutrition as read-only
    • edit/add modes: Editable nutrition fields (the Scan button shows in OCR mode only)

    Current recipe screen mode

    Current nutrition data (if any)

    Setter function for nutrition data

    Test ID prefix for component

    Props object for RecipeNutrition component

    interface RecipeNutritionPropsInput {
        stackMode: recipeStateType;
        recipeNutrition: nutritionTableElement | undefined;
        setRecipeNutrition: (value: nutritionTableElement | undefined) => void;
        parentTestId: string;
    }

    Hierarchy

    • BaseFieldInput
      • RecipeNutritionPropsInput
    Index
    stackMode: recipeStateType
    recipeNutrition: nutritionTableElement | undefined
    setRecipeNutrition: (value: nutritionTableElement | undefined) => void
    parentTestId: string