Preparing search index...

    Interface RecipeTimePropsInput

    Builds props for RecipeNumber component displaying preparation time

    Handles mode-specific behavior:

    • readOnly: Displays formatted time in minutes
    • edit/addManual: Editable number input
    • addOCR with default value: Shows OCR button with manual fill option
    • addOCR with a value: Editable number input with a trailing scan icon (scanField)

    Current recipe screen mode

    Current time in minutes

    Setter function for time

    Translation function

    Props object for RecipeNumber component

    interface RecipeTimePropsInput {
        stackMode: recipeStateType;
        t: (key: string) => string;
        recipeTime: number;
        setRecipeTime: (value: number) => void;
    }

    Hierarchy

    • FieldInputT
      • RecipeTimePropsInput
    Index
    stackMode: recipeStateType
    t: (key: string) => string
    recipeTime: number
    setRecipeTime: (value: number) => void