mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
15 lines
No EOL
401 B
JavaScript
15 lines
No EOL
401 B
JavaScript
import React from 'react';
|
|
import Posts from "meteor/nova:posts";
|
|
|
|
const PostsThumbnail = ({post}) => {
|
|
return (
|
|
<a className="posts-thumbnail" href={Posts.getLink(post)} target={Posts.getLinkTarget(post)}>
|
|
<span><img src={Posts.getThumbnailUrl(post)} /></span>
|
|
</a>
|
|
)
|
|
}
|
|
|
|
PostsThumbnail.displayName = "PostsThumbnail";
|
|
|
|
module.exports = PostsThumbnail;
|
|
export default PostsThumbnail; |