mirror of
https://github.com/langgenius/dify.git
synced 2025-11-03 12:23:07 +00:00
datasource icon
This commit is contained in:
parent
3b9a0b1d25
commit
6bd28cadc4
@ -25,6 +25,7 @@ import {
|
||||
VariableX,
|
||||
} from '@/app/components/base/icons/src/vender/workflow'
|
||||
import AppIcon from '@/app/components/base/app-icon'
|
||||
import cn from '@/utils/classnames'
|
||||
|
||||
type BlockIconProps = {
|
||||
type: BlockEnum
|
||||
@ -97,13 +98,14 @@ const BlockIcon: FC<BlockIconProps> = ({
|
||||
toolIcon,
|
||||
}) => {
|
||||
return (
|
||||
<div className={`
|
||||
flex items-center justify-center border-[0.5px] border-white/2 text-white
|
||||
${ICON_CONTAINER_CLASSNAME_SIZE_MAP[size]}
|
||||
${ICON_CONTAINER_BG_COLOR_MAP[type]}
|
||||
${toolIcon && '!shadow-none'}
|
||||
${className}
|
||||
`}
|
||||
<div className={
|
||||
cn(
|
||||
'flex items-center justify-center border-[0.5px] border-white/2 text-white',
|
||||
ICON_CONTAINER_CLASSNAME_SIZE_MAP[size],
|
||||
!toolIcon && ICON_CONTAINER_BG_COLOR_MAP[type],
|
||||
toolIcon && '!shadow-none',
|
||||
className,
|
||||
)}
|
||||
>
|
||||
{
|
||||
type !== BlockEnum.Tool && (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user