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
Param: stackMode
Current recipe screen mode
Param: recipeTitle
Current title value
Param: setRecipeTitle
Setter function for title
Param: t
Translation function
Param: forceEditable
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.
Param: onManuallyFill
Called by the "add manually" button to reveal the input; without it the addOCR empty state falls back to the editable input
Builds props for RecipeText component displaying the title
Handles mode-specific behavior:
forceEditableis setscanField) in OCR mode onlyParam: stackMode
Current recipe screen mode
Param: recipeTitle
Current title value
Param: setRecipeTitle
Setter function for title
Param: t
Translation function
Param: forceEditable
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.
Param: onManuallyFill
Called by the "add manually" button to reveal the input; without it the addOCR empty state falls back to the editable input
Returns
Props object for RecipeText component