mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-06-04 11:14:10 +08:00
23 lines
502 B
TypeScript
23 lines
502 B
TypeScript
import classNames from 'classnames'
|
|
import type { FC, ReactNode } from 'react'
|
|
|
|
type ModelBadgeProps = {
|
|
className?: string
|
|
children?: ReactNode
|
|
}
|
|
const ModelBadge: FC<ModelBadgeProps> = ({
|
|
className,
|
|
children,
|
|
}) => {
|
|
return (
|
|
<div className={classNames(
|
|
'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',
|
|
className,
|
|
)}>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default ModelBadge
|