Preparing search index...

    Return value from the useRecipePreparation hook

    interface UseRecipePreparationReturn {
        editPreparationTitle: (stepIndex: number, newTitle: string) => void;
        editPreparationDescription: (
            stepIndex: number,
            newDescription: string,
        ) => void;
        addNewPreparationStep: () => void;
    }
    Index

    Properties

    editPreparationTitle: (stepIndex: number, newTitle: string) => void

    Updates the title of a preparation step at the specified index

    editPreparationDescription: (stepIndex: number, newDescription: string) => void

    Updates the description of a preparation step at the specified index

    addNewPreparationStep: () => void

    Adds a new empty preparation step to the end of the list