mirror of
https://github.com/vale981/Vulcan
synced 2025-03-11 13:06:41 -04:00
12 lines
No EOL
346 B
JavaScript
12 lines
No EOL
346 B
JavaScript
import React from 'react';
|
|
import { Posts } from '../../modules/posts/index.js';
|
|
import { Link } from 'react-router';
|
|
|
|
const AdminUsersPosts = ({ document: user }) =>
|
|
<ul>
|
|
{user.posts && user.posts.map(post =>
|
|
<li key={post._id}><Link to={Posts.getLink(post)}>{post.title}</Link></li>
|
|
)}
|
|
</ul>
|
|
|
|
export default AdminUsersPosts; |