Preparing search index...

    The prefix label + DataTable header frame. Renders any mapped row children the caller passes, plus an optional add button below the table.

    interface IngredientsTableProps {
        testID: string;
        prefixText: string;
        columnTitles: IngredientsTableColumnTitles;
        children: ReactNode;
        withScan?: boolean;
        addIngredientButtonLabel: string;
        onAddIngredient?: () => void;
        error?: string;
    }
    Index
    testID: string
    prefixText: string
    children: ReactNode
    withScan?: boolean

    Replaces the add-row button with the OCR scan buttons (OCR mode).

    addIngredientButtonLabel: string

    Caption rendered under the add-ingredient round button.

    onAddIngredient?: () => void
    error?: string

    Optional error rendered below the table (e.g. empty-array message).