Preparing search index...

    Function buildRecipeTagsProps

    • Builds props for RecipeTags component based on current mode

      Handles mode-specific behavior:

      • readOnly: Displays tags as read-only chips
      • edit/addManual: Editable tags with add/remove functionality
      • addOCR: Add mode with OCR button option

      Parameters

      • stackMode: recipeStateType

        Current recipe screen mode

      • recipeTags: tagTableElement[]

        Current tags array

      • randomTags: string[]

        Suggested tags for display

      • addTag: (newTag: string) => void

        Callback to add a new tag

      • removeTag: (tagName: string) => void

        Callback to remove a tag by name

      • openModalForField: (field: recipeColumnsNames) => void

        Callback to open OCR modal

      • OptionalhideDropdown: boolean

      Returns RecipeTagProps

      Props object for RecipeTags component