import SmartLink from '@/components/SmartLink'

const TagItem = ({ tag }) => (
  (<SmartLink href={`/tag/${encodeURIComponent(tag)}`}>

    <p className="mr-1 rounded-full px-2 py-1 border leading-none text-sm dark:border-gray-600">
      {tag}
    </p>

  </SmartLink>)
)

export default TagItem
