index.tsx 510 B

12345678910111213141516171819202122
  1. import type { FC, ReactNode } from 'react'
  2. import classNames from '@/utils/classnames'
  3. type ModelBadgeProps = {
  4. className?: string
  5. children?: ReactNode
  6. }
  7. const ModelBadge: FC<ModelBadgeProps> = ({
  8. className,
  9. children,
  10. }) => {
  11. return (
  12. <div className={classNames(
  13. 'flex items-center px-1 h-[18px] rounded-[5px] border border-black/8 bg-white/[0.48] text-[10px] font-medium text-gray-500 cursor-default',
  14. className,
  15. )}>
  16. {children}
  17. </div>
  18. )
  19. }
  20. export default ModelBadge