'use client'
OnMount( async ( )=>{ try { const response = await fetch(`https://api/example.com/admin/recipes`, {headers: {'Authorization': 'Bearer ${apiKey}'}}); if (!response.ok) { throw new Error('Failed to fetch recipes');} recipes = await response.json();} catch (err) {error = err.message;});})