chore: code refactor

This commit is contained in:
gosangam
2026-06-13 02:24:42 +05:30
parent cc5633c37a
commit 439664a97d
151 changed files with 1387 additions and 1138 deletions
@@ -0,0 +1,29 @@
"use client";
/**
* PostLikesDrawer — the "liked by" list for a post. A thin wrapper over the
* generic virtualized UserListDrawer, wired to the post-likes endpoint.
*/
import { posts } from "@/lib/social";
import { UserListDrawer } from "@/components/social/user-list-drawer";
export function PostLikesDrawer({
open,
postId,
onClose,
}: {
open: boolean;
postId: string;
onClose: () => void;
}) {
return (
<UserListDrawer
open={open}
onClose={onClose}
title="Likes"
depsKey={`likes:${postId}`}
fetchPage={(params) => posts.likers(postId, params)}
/>
);
}