Vulcan/packages/nova-base-components/lib/posts/PostsThumbnail.jsx

12 lines
300 B
React
Raw Normal View History

import React from 'react';
2016-04-14 10:12:35 +09:00
const PostsThumbnail = ({post}) => {
2016-03-27 18:17:20 +09:00
return (
<a className="post-thumbnail" href={Posts.getLink(post)} target={Posts.getLinkTarget(post)}>
2016-04-07 14:34:13 +02:00
<img src={Posts.getThumbnailUrl(post)} />
2016-03-27 18:17:20 +09:00
</a>
)
}
2016-04-14 10:12:35 +09:00
module.exports = PostsThumbnail;
export default PostsThumbnail;