mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 20:16:39 -04:00
12 lines
No EOL
424 B
JavaScript
12 lines
No EOL
424 B
JavaScript
import { registerComponent } from 'meteor/vulcan:core';
|
|
import React from 'react';
|
|
import Posts from "meteor/vulcan:posts";
|
|
|
|
const PostsThumbnail = ({post}) =>
|
|
<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); |