Preparing search index...

    Interface RecipeTitlePropsInput

    Builds props for RecipeText component displaying the title

    Handles mode-specific behavior:

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

    Current recipe screen mode

    Current title value

    Setter function for title

    Translation function

    Keeps the editable input mounted in addOCR mode even when the title is empty, so a field that was filled then cleared still surfaces its inline error instead of reverting to the Scan / "add manually" buttons.

    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 RecipeTitlePropsInput {
        stackMode: recipeStateType;
        t: (key: string) => string;
        recipeTitle: string;
        setRecipeTitle: (value: string) => void;
        forceEditable?: boolean;
        onManuallyFill?: () => void;
    }

    Hierarchy

    • FieldInputT
      • RecipeTitlePropsInput
    Index
    stackMode: recipeStateType
    t: (key: string) => string
    recipeTitle: string
    setRecipeTitle: (value: string) => void
    forceEditable?: boolean
    onManuallyFill?: () => void