mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-15 15:09:25 +00:00
14 lines
581 B
JavaScript
14 lines
581 B
JavaScript
import BlogPostListScroll from './components/BlogPostListScroll'
|
|
import LayoutBase from './LayoutBase'
|
|
|
|
export const LayoutCategory = props => {
|
|
const { tags, posts, category } = props
|
|
return <LayoutBase {...props}>
|
|
<div className="cursor-pointer px-5 py-1 mb-2 font-light hover:underline hover:text-indigo-700 dark:hover:text-indigo-400 transform text-center dark:text-white">
|
|
<i className="mr-1 far fa-folder" />
|
|
{category}
|
|
</div>
|
|
<BlogPostListScroll posts={posts} tags={tags} currentCategory={category} />
|
|
</LayoutBase>
|
|
}
|