import type { Ingredient, Ingredients } from "../lib/recipes.ts"; type IngredientsProps = { ingredients: Ingredients; }; function formatIngredient(ingredient: Ingredient) { return `${ ingredient.amount && ingredient.unit && ` - ${ingredient.amount} ${ingredient.unit}` } ${ingredient.type}`; } export const IngredientsList = ({ ingredients }: IngredientsProps) => { return (