]> Untitled Git - lemmy-ui.git/blob - src/shared/utils/app/edit-comment-report.ts
fix: Fix badge alignment and break out into component
[lemmy-ui.git] / src / shared / utils / app / edit-comment-report.ts
1 import { editListImmutable } from "@utils/helpers";
2 import { CommentReportView } from "lemmy-js-client";
3
4 export default function editCommentReport(
5   data: CommentReportView,
6   reports: CommentReportView[]
7 ): CommentReportView[] {
8   return editListImmutable("comment_report", data, reports);
9 }