mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
16 lines
647 B
React
16 lines
647 B
React
![]() |
const PostStats = ({post}) => {
|
||
|
|
||
|
({Icon} = Telescope.components);
|
||
|
|
||
|
return (
|
||
|
<div className="post-stats">
|
||
|
<span title="Score"><Icon name="score"/> {Math.floor(post.score*100)/100} <span className="sr-only">Score</span></span>
|
||
|
<span title="Upvotes"><Icon name="upvote"/> {post.upvotes} <span className="sr-only">Upvotes</span></span>
|
||
|
<span title="Clicks"><Icon name="clicks"/> {post.clickCount} <span className="sr-only">Clicks</span></span>
|
||
|
<span title="Views"><Icon name="views"/> {post.viewCount} <span className="sr-only">Views</span></span>
|
||
|
</div>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
module.exports = PostStats;
|
||
|
export default PostStats;
|