Vulcan/packages/nova-base-components/lib/posts/PostsThumbnail.jsx
Sacha Greif 6665a7c968 making component names and class names more consistent.
- Posts, Comments, Users, etc. are always pluralized.
- CSS classes are based off component names (PostsTitle -> posts-title)
2016-04-19 15:45:36 +09:00

12 lines
No EOL
301 B
JavaScript

import React from 'react';
const PostsThumbnail = ({post}) => {
return (
<a className="posts-thumbnail" href={Posts.getLink(post)} target={Posts.getLinkTarget(post)}>
<img src={Posts.getThumbnailUrl(post)} />
</a>
)
}
module.exports = PostsThumbnail;
export default PostsThumbnail;