mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-04 14:00:39 +08:00

Co-authored-by: StyleZhang <jasonapring2015@outlook.com> Co-authored-by: Garfield Dai <dai.hai@foxmail.com> Co-authored-by: chenhe <guchenhe@gmail.com> Co-authored-by: jyong <jyong@dify.ai> Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: Yeuoly <admin@srmxy.cn>
23 lines
451 B
TypeScript
23 lines
451 B
TypeScript
import type { FC, ReactNode } from 'react'
|
|
|
|
type ModelBadgeProps = {
|
|
className?: string
|
|
children?: ReactNode
|
|
}
|
|
const ModelBadge: FC<ModelBadgeProps> = ({
|
|
className,
|
|
children,
|
|
}) => {
|
|
return (
|
|
<div className={`
|
|
flex items-center px-1 h-[18px] rounded-[5px] border border-black/[0.08] bg-white/[0.48]
|
|
text-[10px] font-medium text-gray-500
|
|
${className}
|
|
`}>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default ModelBadge
|