2021-01-09 17:50:45 +08:00
|
|
|
import Link from 'next/link'
|
2021-05-08 13:58:57 +08:00
|
|
|
import kebabCase from '@/lib/utils/kebabCase'
|
2021-01-09 17:50:45 +08:00
|
|
|
|
|
|
|
const Tag = ({ text }) => {
|
|
|
|
return (
|
|
|
|
<Link href={`/tags/${kebabCase(text)}`}>
|
2021-06-19 17:40:01 +08:00
|
|
|
<a className="mr-3 text-sm font-medium uppercase text-primary-500 hover:text-primary-600 dark:hover:text-primary-400">
|
2021-01-09 17:50:45 +08:00
|
|
|
{text.split(' ').join('-')}
|
|
|
|
</a>
|
|
|
|
</Link>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Tag
|