Preparing search index...

    Interface ValidationHandlers

    Handler functions returned by the hook

    interface ValidationHandlers {
        onTagValidated: (
            originalTag: tagTableElement,
            validatedTag: tagTableElement,
        ) => void;
        onIngredientValidated: (
            originalName: string,
            validatedIngredient: ingredientTableElement,
        ) => void;
        startImport: () => void;
        acknowledgeWarning: () => void;
    }
    Index
    onTagValidated: (
        originalTag: tagTableElement,
        validatedTag: tagTableElement,
    ) => void

    Called when the user maps or skips a tag during the review phase

    onIngredientValidated: (
        originalName: string,
        validatedIngredient: ingredientTableElement,
    ) => void

    Called when the user maps or skips an ingredient during the review phase

    startImport: () => void

    Triggers the final import after all items have been reviewed

    acknowledgeWarning: () => void

    Dismisses the pre-validation skipped-recipes warning and advances to the next phase