Add onLike and onComment props to FeedItemCard and wire buttons

cgen-26fdcec7c7b54246bd9eccb96e487a2f
This commit is contained in:
Builder.io 2025-10-18 04:40:23 +00:00
parent 3d827f4707
commit 07cab99dfb

View file

@ -19,6 +19,8 @@ interface FeedItemCardProps {
isFollowing: boolean;
onToggleFollow: (authorId: string) => void;
onShare: (postId: string) => void;
onLike: (postId: string) => void;
onComment: (postId: string) => void;
}
export function FeedItemCard({
@ -26,6 +28,8 @@ export function FeedItemCard({
isFollowing,
onToggleFollow,
onShare,
onLike,
onComment,
}: FeedItemCardProps) {
const [muted, setMuted] = useState(true);
const hasMedia = item.mediaType !== "none" && Boolean(item.mediaUrl);