import { cn } from '@langgenius/dify-ui/cn'
import * as React from 'react'

const Tag = ({ text, className }: { text: string, className?: string }) => {
  return (
    <div className={cn('inline-flex items-center gap-x-0.5', className)}>
      <span className="text-xs font-medium text-text-quaternary">#</span>
      <span className="max-w-12 shrink-0 truncate text-xs text-text-tertiary">{text}</span>
    </div>
  )
}

Tag.displayName = 'Tag'

export default React.memo(Tag)
