import type { Recipe } from "../types/recipe"

/**
 * Mock data set with some sample recipes.
 * In a real application, this would be fetched from a backend.
 */
export const recipes: Recipe[] = [
  {
  id: "1",
  title: "Spaghetti Bolognese",
  servings: { amount: 1, unit: "Person"},
  ingredientGroupList: [
    {
      ingredientList: [
        { name: "Spaghetti", amount: 200, unit: "g" },
        { name: "Ground Beef", amount: 300, unit: "g" },
        { name: "Tomato Sauce", amount: 400, unit: "ml" }
      ]
    }
  ],
  instructions: "Cook pasta. Prepare sauce. Mix together. Serve hot.",
  //imageUrl: "https://source.unsplash.com/400x300/?spaghetti"
},
{
  id: "2",
  title: "Spaghetti Carbonara",
  servings: { amount: 4, unit: "Persons"},
  ingredientGroupList: [
    {
      ingredientList:[
        { name: "Spaghetti", amount: 500, unit: "g" },
        { name: "Bacon", amount: 150, unit: "g" },
        { name: "Cream", amount: 200, unit: "ml" },
        { name: "Onion", amount: 1},
        { name: "Parmesan cheese", amount: 200, unit: "g"},
        { name: "Olives", amount: 100, unit: "g"}
      ]
    }
  ],
  instructions: "Cook pasta. Prepare sauce. Mix together. Serve hot.",
  //imageUrl: "https://source.unsplash.com/400x300/?spaghetti"
},
{ id: "3",
  title: "Apfelkuchen Edeltrud",
  servings: { amount: 1, unit: "Kuchen"},
  ingredientGroupList:[
    {
      title: "Fuer den Teig",
      ingredientList: [
        { name: "Mehl", amount: 400, unit: "g" }
      ]
    },
    { 
      title: "Fuer die Fuellung",
      ingredientList:[
        {name: "Aepfel", amount: 4},
        {name: "Rosinen", amount: 1, unit: "Hand voll"}
      ]
    }
  ],
  instructions: "Einen Muerbteig von 400 g Mehl zubereiten"
}
]