export const fetchRecipeDetails = async (id) => { const response = await fetch( `https://api.spoonacular.com/recipes/${id}/information?includeNutrition=false&apiKey=2bed23978b4d417081acee70da2f9f5f` ); if (!response?.ok) { throw new Error("Failed to fetch recipe details"); } return await response?.json(); };