2016-03-30 09:24:52 +09:00
|
|
|
import React from 'react';
|
2016-06-23 11:40:35 +09:00
|
|
|
import Posts from "meteor/nova:posts";
|
2016-03-30 09:24:52 +09:00
|
|
|
|
2016-04-14 10:12:35 +09:00
|
|
|
const PostsThumbnail = ({post}) => {
|
2016-03-27 18:17:20 +09:00
|
|
|
return (
|
2016-04-19 15:45:36 +09:00
|
|
|
<a className="posts-thumbnail" href={Posts.getLink(post)} target={Posts.getLinkTarget(post)}>
|
2016-05-03 12:44:50 +09:00
|
|
|
<span><img src={Posts.getThumbnailUrl(post)} /></span>
|
2016-03-27 18:17:20 +09:00
|
|
|
</a>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2016-05-22 16:42:24 +09:00
|
|
|
PostsThumbnail.displayName = "PostsThumbnail";
|
|
|
|
|
2016-04-14 10:12:35 +09:00
|
|
|
module.exports = PostsThumbnail;
|
|
|
|
export default PostsThumbnail;
|