badge.tsx 463 B

1234567891011121314151617181920212223242526
  1. import { memo } from 'react'
  2. import cn from '@/utils/classnames'
  3. type BadgeProps = {
  4. className?: string
  5. text: string
  6. }
  7. const Badge = ({
  8. className,
  9. text,
  10. }: BadgeProps) => {
  11. return (
  12. <div
  13. className={cn(
  14. 'inline-flex items-center px-[5px] h-5 rounded-[5px] border border-divider-deep system-2xs-medium-uppercase leading-3 text-text-tertiary',
  15. className,
  16. )}
  17. >
  18. {text}
  19. </div>
  20. )
  21. }
  22. export default memo(Badge)