mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 11:56:55 +08:00
20 lines
477 B
TypeScript
20 lines
477 B
TypeScript
import type { FC, ReactNode } from 'react'
|
|
import { cn } from '@/utils/classnames'
|
|
|
|
type ModelBadgeProps = {
|
|
className?: string
|
|
children?: ReactNode
|
|
}
|
|
const ModelBadge: FC<ModelBadgeProps> = ({
|
|
className,
|
|
children,
|
|
}) => {
|
|
return (
|
|
<div className={cn('system-2xs-medium-uppercase flex h-[18px] cursor-default items-center rounded-[5px] border border-divider-deep px-1 text-text-tertiary', className)}>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default ModelBadge
|