mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2025-01-26 11:55:52 +00:00
9 lines
261 B
TypeScript
9 lines
261 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);
|
|
}
|