mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 23:16:49 +00:00
28 lines
807 B
JavaScript
28 lines
807 B
JavaScript
import { useGlobal } from '@/lib/global'
|
|
import TagItemMini from './components/TagItemMini'
|
|
import LayoutBase from './LayoutBase'
|
|
|
|
export const LayoutTagIndex = props => {
|
|
const { tagOptions } = props
|
|
const { locale } = useGlobal()
|
|
return (
|
|
<LayoutBase {...props}>
|
|
<div className="bg-white dark:bg-gray-700 py-10">
|
|
<div className="dark:text-gray-200 mb-5">
|
|
<i className="mr-4 fas fa-tag" />
|
|
{locale.COMMON.TAGS}:
|
|
</div>
|
|
<div id="tags-list" className="duration-200 flex flex-wrap">
|
|
{tagOptions?.map(tag => {
|
|
return (
|
|
<div key={tag.name} className="p-2">
|
|
<TagItemMini key={tag.name} tag={tag} />
|
|
</div>
|
|
)
|
|
})}
|
|
</div>
|
|
</div>
|
|
</LayoutBase>
|
|
)
|
|
}
|