Preparing search index...

    Module context/RecipeDialogsContext

    RecipeDialogsContext - Context for managing dialog states in Recipe screen

    Provides centralized dialog state management that can be accessed by any hook within the Recipe screen without prop drilling. Manages three types of dialogs:

    • Validation dialog: Displays errors and confirmations
    • Similarity dialog: Shows when adding items with similar names
    • Validation queue: Manages items requiring user validation

    It also holds the image-select modal target (imageModalTarget) and its opener (openImageModal), so any field can open the modal without a callback being threaded through props.

    ValidationDialogProps
    SimilarityDialogState
    SnackbarAction
    SnackbarState
    RecipeDialogsContextType
    RecipeDialogsProvider
    useRecipeDialogs