import { api } from '@/api/client' import type { ApiResponse, CommentReport, ListParams, PaginatedResponse } from '@/api/types' const BASE = '/api/admin/v1/comments' export type CommentReportAction = 'hide' | 'delete' | 'dismiss' export function fetchCommentReports(params: ListParams) { return api.get>(`${BASE}/reports`, params) } export function handleCommentReport(id: number, action: CommentReportAction) { return api.patch>(`${BASE}/reports/${id}`, { action }) }