Preparing search index...

    Module screens/Recipe

    Recipe Screen Module

    The main recipe screen component that handles viewing, editing, and creating recipes. Supports four distinct operational modes:

    • Read-only mode: View recipe details and add to shopping list
    • Edit mode: Modify existing recipe data
    • Manual add mode: Create new recipe from scratch
    • OCR add mode: Create new recipe from photo using text recognition

    This screen manages complex state through custom hooks, handles recipe validation, similarity detection, and integrates with SQLite database operations. It provides a comprehensive UI for all recipe-related operations including image management, ingredient handling, tag assignment, and preparation step organization.

    Functions

    Recipe