)=>{}); toast(d?.error || 'Error', 'error'); } } async function deleteBlogComment(id) { if (!confirm('Permanently delete this comment?')) return; const r = await api(`/api/blog-comments/admin/${id}`, { method: 'DELETE' }); if (r.ok) { toast('Comment deleted'); renderBlogCommentsPage(); } else { const d = await r.json().catch(()=>{}); toast(d?.error || 'Error', 'error'); } }