mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2025-01-28 21:01:37 +00:00
10 lines
260 B
TypeScript
10 lines
260 B
TypeScript
|
import { editListImmutable } from "@utils/helpers";
|
||
|
import { CommentView } from "lemmy-js-client";
|
||
|
|
||
|
export default function editComment(
|
||
|
data: CommentView,
|
||
|
comments: CommentView[]
|
||
|
): CommentView[] {
|
||
|
return editListImmutable("comment", data, comments);
|
||
|
}
|