Preparing search index...

    Interface RecipeDescriptionPropsInput

    Builds props for RecipeText component displaying the description

    Handles mode-specific behavior:

    • readOnly: Displays description as paragraph
    • edit/addManual: Editable text input
    • addOCR with empty description: Shows Scan and "add manually" buttons, unless forceEditable is set
    • addOCR with a description: Editable input with a trailing scan icon (scanField) in OCR mode only

    Current recipe screen mode

    Current description value

    Setter function for description

    Translation function

    Keeps the editable input mounted in addOCR mode even when empty

    Called by the "add manually" button to reveal the input; without it the addOCR empty state falls back to the editable input

    Props object for RecipeText component

    interface RecipeDescriptionPropsInput {
        stackMode: recipeStateType;
        t: (key: string) => string;
        recipeDescription: string;
        setRecipeDescription: (value: string) => void;
        forceEditable?: boolean;
        onManuallyFill?: () => void;
    }

    Hierarchy

    • FieldInputT
      • RecipeDescriptionPropsInput
    Index
    stackMode: recipeStateType
    t: (key: string) => string
    recipeDescription: string
    setRecipeDescription: (value: string) => void
    forceEditable?: boolean
    onManuallyFill?: () => void