Preparing search index...

    Module RecipeFormHelpers

    RecipeFormHelpers - Pure utility functions and prop builders for the Recipe screen

    This module provides stateless helper functions for recipe form management, including:

    • Mode conversion between navigation props and internal state types
    • Recipe data validation for save operations
    • Prop generation for recipe UI components based on current mode
    • Recipe scaling for database normalization

    All functions are pure (no side effects) and can be easily unit tested.

    RecipeImagePropsInput
    RecipeTitlePropsInput
    RecipeDescriptionPropsInput
    RecipeTagsPropsInput
    RecipePersonsPropsInput
    RecipeTimePropsInput
    RecipeNutritionPropsInput
    RecipeSourceUrlPropsInput
    ModeConfig
    IMAGE_BUTTON_CONFIG
    TITLE_STYLE_CONFIG
    convertModeFromProps
    scaleRecipeForSave
    getServingsScaledFrom
    buildRecipeImageProps
    buildRecipeTitleProps
    buildRecipeDescriptionProps
    buildRecipeTagsProps
    buildRecipePersonsProps
    buildRecipeTimeProps
    buildRecipeNutritionProps
    getValidationButtonConfig
    getMissingFieldsErrorContent
    buildRecipeSourceUrlProps
    isPreparationStepBlank