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