theme-next-refactor

This commit is contained in:
tangly1024
2023-07-04 22:47:09 +08:00
parent 64a747af0d
commit 1553494758
17 changed files with 387 additions and 438 deletions

View File

@@ -0,0 +1,29 @@
import CategoryList from './CategoryList'
import StickyBar from './StickyBar'
import TagList from './TagList'
/**
* 博客列表上方嵌入
* @param {*} props
* @returns
*/
export default function BlogListBar(props) {
const { tagOptions, tag } = props
const { category, categoryOptions } = props
if (tag) {
return (
<StickyBar>
<TagList tagOptions={tagOptions} currentTag={tag} />
</StickyBar>
)
} else if (category) {
return (
<StickyBar>
<CategoryList currentCategory={category} categoryOptions={categoryOptions} />
</StickyBar>
)
} else {
return <></>
}
}