|
const PostCommentAction = ({ myID, commentId, likes, delLikeComment, addLikeComment }) => {
|
|
const PostCommentAction = ({ myID, commentId, likes, delLikeComment, addLikeComment }) => {
|
|
const [open, setOpen] = useState(false);
|
|
const [open, setOpen] = useState(false);
|
|
const changeLike = () => likeId ? delLikeComment(likeId, commentId) : addLikeComment(commentId)
|
|
const changeLike = () => likeId ? delLikeComment(likeId, commentId) : addLikeComment(commentId)
|