2021-02-06 16:54:20 +08:00

15 lines
355 B
JavaScript

import Link from 'next/link'
import { kebabCase } from '@/lib/utils'
const Tag = ({ text }) => {
return (
<Link href={`/tags/${kebabCase(text)}`}>
<a className="mr-3 text-sm font-medium text-blue-500 uppercase hover:text-blue-600 dark:hover:text-blue-400">
{text.split(' ').join('-')}
</a>
</Link>
)
}
export default Tag