Add onLike and onComment props to FeedItemCard and wire buttons
cgen-26fdcec7c7b54246bd9eccb96e487a2f
This commit is contained in:
parent
3d827f4707
commit
07cab99dfb
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue