dify/web/app/components/plugins/card/base/org-info.tsx

20 lines
553 B
TypeScript
Raw Normal View History

2024-10-10 10:40:26 +08:00
import cn from '@/utils/classnames'
const OrgInfo = ({
className,
orgName,
packageName,
}: {
className?: string
orgName: string
packageName: string
}) => {
return <div className={cn('flex items-center h-4 space-x-0.5', className)}>
<span className="shrink-0 text-text-tertiary system-xs-regular">{orgName}</span>
<span className='shrink-0 text-text-quaternary system-xs-regular'>/</span>
<span className="shrink-0 w-0 grow truncate text-text-tertiary system-xs-regular">{packageName}</span>
</div>
}
export default OrgInfo