Renders the like button of a comment in a dump's thread.
Renders a comment's like button and its count. Clicking the count, when it isn't zero, opens the list of likers (GET /api/comments/:id/likers) instead.
GET /api/comments/:id/likers
Passed to LikeButton by CommentNode, with the state and the functions of WSContext.
CommentNode
WSContext
The socket's live count if it has one, else the comment's likeCount.
likeCount
Set for a visitor, whom the tooltip asks to log in.
Called with count, which WSContext needs until it has a live count.
count
Called with count, as onLike is.
onLike
import * as mod from "src/components/social/LikeButton.tsx";