2017-03-23 16:27:59 +09:00
|
|
|
import { registerComponent } from 'meteor/vulcan:core';
|
2016-03-30 09:24:52 +09:00
|
|
|
import React from 'react';
|
2017-03-23 16:27:59 +09:00
|
|
|
import Posts from "meteor/vulcan:posts";
|
2016-03-30 09:24:52 +09:00
|
|
|
|
2017-04-28 16:37:08 +09:00
|
|
|
const PostsThumbnail = ({post}) =>
|
|
|
|
<a className="posts-thumbnail" href={Posts.getLink(post)} target={Posts.getLinkTarget(post)}>
|
|
|
|
<span><img src={Posts.getThumbnailUrl(post)} /></span>
|
|
|
|
</a>
|
2016-03-27 18:17:20 +09:00
|
|
|
|
2016-05-22 16:42:24 +09:00
|
|
|
PostsThumbnail.displayName = "PostsThumbnail";
|
|
|
|
|
2016-12-06 18:06:29 +01:00
|
|
|
registerComponent('PostsThumbnail', PostsThumbnail);
|