+
+
+ {/* Recipe Card content */}
+
+
+ {title}
+
+
+
+
+ );
+}
diff --git a/components/RecipeCard.tsx b/components/RecipeCard.tsx
index a67349f..37a60ff 100644
--- a/components/RecipeCard.tsx
+++ b/components/RecipeCard.tsx
@@ -1,29 +1,18 @@
-import { Recipe } from "../lib/recipes.ts";
+import { Card } from "@components/Card.tsx";
+import { Recipe } from "@lib/recipes.ts";
export function RecipeCard({ recipe }: { recipe: Recipe }) {
+ const { meta: { image = "Recipes/images/placeholder.jpg" } = {} } = recipe;
+
+ const imageUrl = image.startsWith("Recipes/images/")
+ ? `/api/images?image=${image}&width=200&height=200`
+ : image;
+
return (
-
-
-
- {/* Recipe Card content */}
-
-
- {recipe.name}
-
-
-
-
+