mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 23:16:49 +00:00
15 lines
380 B
JavaScript
15 lines
380 B
JavaScript
import Link from 'next/link'
|
|
|
|
const TagItem = ({ tag }) => (
|
|
<Link href={`/tag/${encodeURIComponent(tag)}`}>
|
|
<a>
|
|
<p className="hover:shadow hover:scale-105 hover:bg-blue-500 bg-gray-200 hover:text-white duration-200 mr-1 px-2 py-1 leading-none text-sm
|
|
dark:bg-gray-500 dark:hover:bg-black">
|
|
{tag}
|
|
</p>
|
|
</a>
|
|
</Link>
|
|
)
|
|
|
|
export default TagItem
|