Preparing search index...

    Function getValidationButtonConfig

    • Returns validation button configuration based on current mode

      Maps recipe screen mode to appropriate button text and type:

      • readOnly: "Back" type button
      • edit: "Save" type button
      • add modes: "Create" type button

      Parameters

      • stackMode: recipeStateType

        Current recipe screen mode

      • t: (key: string) => string

        Translation function

      Returns { text: string; type: "add" | "edit" | "readOnly" }

      Object with translated button text and button type