Preparing search index...
    interface RecipeNutritionProps {
        nutrition?: nutritionTableElement;
        mode: recipeStateType;
        onNutritionChange?: (nutrition: undefined | nutritionTableElement) => void;
        openModal?: () => void;
        parentTestId: string;
    }
    Index

    Properties

    Current nutrition data (undefined when no nutrition available)

    Component mode for different interaction types

    onNutritionChange?: (nutrition: undefined | nutritionTableElement) => void

    Callback fired when nutrition data changes in edit mode

    openModal?: () => void

    Function to open the OCR scanning modal (required when mode is 'ocr')

    parentTestId: string

    Test ID of parent for component testing