Preparing search index...

    Function buildRecipeSourceUrlProps

    • Builds props for RecipeSourceUrl component based on current mode and source URL availability

      Only returns props when in read-only mode with a non-empty source URL. Returns undefined in all other cases to conditionally hide the component.

      Parameters

      • stackMode: recipeStateType

        Current recipe screen mode

      • sourceUrl: undefined | string

        Source URL from the recipe (if available)

      • onCopied: () => void

        Callback fired after URL is copied to clipboard

      Returns undefined | RecipeSourceUrlProps

      Props object for RecipeSourceUrl or undefined if component should not be shown