import type { Ingredient } from "./ingredient"
/**
 * A group of ingredients
 * Consisting of title and ingredient list, this interface is used to group
 * the ingredients for a specific part of the dish, e.g., dough, filling and
 * icing of a cake
 */

export interface IngredientGroup {
    /** 
     * Title of the group describing its purpose 
     * The title is optional as recipes consisting of a single ingredient group usually don't
     * supply a title
    */
    title? : string
    /** Ingredients */
    ingredientList : Ingredient[]
}