mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
15 lines
No EOL
443 B
JavaScript
15 lines
No EOL
443 B
JavaScript
import { registerComponent } from 'meteor/nova:lib';
|
|
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";
|
|
|
|
registerComponent('PostsThumbnail', PostsThumbnail); |