import { apiEndpoints } from "@/lib/api/endpoints"; import { fetchWithAuth } from "@/lib/auth/client"; import type { CommentsResponse, SuccessMessage } from "@/types/api"; export async function listModerationComments( params: Record = {}, ) { return fetchWithAuth(apiEndpoints.comments.moderation(params)); } export async function deleteAdminComment(commentId: string) { return fetchWithAuth(apiEndpoints.comments.adminDelete(commentId), { method: "DELETE", }); }