mirror of
https://github.com/vale981/Vulcan
synced 2025-03-11 21:16:40 -04:00
12 lines
433 B
React
12 lines
433 B
React
![]() |
import { registerComponent } from 'meteor/vulcan:core';
|
||
|
import React from 'react';
|
||
|
import Posts from '../../modules/posts/index.js';
|
||
|
|
||
|
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);
|