mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 10:12:43 +08:00
Signed-off-by: yyh <yuanyouhuilyz@gmail.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: CodingOnStar <hanxujiang@dify.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Coding On Star <447357187@qq.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: -LAN- <laipz8200@outlook.com> Co-authored-by: statxc <tyleradams93226@gmail.com>
20 lines
543 B
TypeScript
20 lines
543 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('inline-flex h-[18px] shrink-0 items-center justify-center whitespace-nowrap rounded-[5px] border border-divider-deep bg-components-badge-bg-dimm px-[5px] text-text-tertiary system-2xs-medium-uppercase', className)}>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default ModelBadge
|