File size: 678 Bytes
1b72d7e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

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 <></>
  }
}