mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
12 lines
No EOL
349 B
JavaScript
12 lines
No EOL
349 B
JavaScript
import React from 'react';
|
|
import Router from '../router.js';
|
|
|
|
const PostsCategories = ({post}) => {
|
|
return (
|
|
<div className="post-categories">
|
|
{post.categoriesArray.map(category => <a key={category._id} href={Router.path("posts.list", {}, {cat: category.slug})}>{category.name}</a>)}
|
|
</div>
|
|
)
|
|
};
|
|
|
|
module.exports = PostsCategories; |