35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
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"},
|
|
ingredients: [
|
|
{ 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"},
|
|
ingredients: [
|
|
{ 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"
|
|
},
|
|
]
|