export async function getTools() { const res = await fetch('/api/tools') if (!res.ok) throw new Error('Failed to fetch tools') return res.json() } export async function getCategories() { const res = await fetch('/api/categories') if (!res.ok) throw new Error('Failed to fetch categories') return res.json() } // Add more API utilities as needed