Vulcan/packages/nova-components/lib/posts/list/PostItem.jsx

14 lines
380 B
React
Raw Normal View History

const PostItem = props => {
return (
<div className="post">
2016-02-16 15:08:30 +09:00
<h3 className="post-title"><a href={Posts.getLink(props)} target={Posts.getLinkTarget(props)}>{props.title}</a></h3>
2016-02-16 16:12:13 +09:00
<p>{props.commentCount} comments</p>
2016-02-16 15:08:30 +09:00
<a href={Posts.getEditUrl(props)}>Edit</a>
<p>{props.url}</p>
</div>
)
};
// export default PostItem;
module.exports = PostItem;