Preparing search index...

    Interface RecipeTagsPropsInput

    Builds props for RecipeTags component based on current mode

    Handles mode-specific behavior:

    • readOnly: Displays tags as read-only chips
    • edit/add modes: Editable tags with add/remove functionality (the Scan button shows in OCR mode only)

    Current recipe screen mode

    Current tags array

    Suggested tags for display

    Callback to add a new tag

    Callback to remove a tag by name

    Props object for RecipeTags component

    interface RecipeTagsPropsInput {
        stackMode: recipeStateType;
        recipeTags: TagDraft[];
        randomTags: string[];
        addTag: (newTag: string) => void;
        removeTag: (tagName: string) => void;
    }

    Hierarchy

    • BaseFieldInput
      • RecipeTagsPropsInput
    Index
    stackMode: recipeStateType
    recipeTags: TagDraft[]
    randomTags: string[]
    addTag: (newTag: string) => void
    removeTag: (tagName: string) => void