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

    Current nutrition data (undefined when no nutrition available)

    Component mode for different interaction types

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

    Callback fired when nutrition data changes in edit mode

    withScan?: boolean

    Renders the OCR scan buttons for the nutrition field (OCR mode)

    parentTestId: string

    Test ID of parent for component testing

    error?: string

    Optional i18n key or message for an inline field-level error