Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tharsheblows
Created July 25, 2020 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tharsheblows/4ebae4ee832ab7d72544fc2e21358423 to your computer and use it in GitHub Desktop.
Save tharsheblows/4ebae4ee832ab7d72544fc2e21358423 to your computer and use it in GitHub Desktop.
/** @jsx jsx */
import { jsx } from 'theme-ui'
const CommentsCount = ( { post } ) => {
const commentCount = post.commentCount || 0
return (
<div sx={{ mb: 2 }}>
Comments: { commentCount }
</div>
)
}
export default CommentsCount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment