import { api } from '@/api/client' import type { ApiResponse, ListParams, PaginatedResponse, ReportedComment } from '@/api/types' const BASE = '/api/admin/v1/comments' export type ModerationAction = 'approve' | 'reject' | 'revert' export function fetchReportedComments(params: ListParams) { return api.get>(`${BASE}/reported`, params) } export function moderateReportedComment(id: number, action: ModerationAction) { return api.patch>(`${BASE}/reported/${id}`, { action }) }