datasource icon

This commit is contained in:
zxhlyh 2025-05-27 13:42:13 +08:00
parent 3b9a0b1d25
commit 6bd28cadc4

View File

@ -25,6 +25,7 @@ import {
VariableX, VariableX,
} from '@/app/components/base/icons/src/vender/workflow' } from '@/app/components/base/icons/src/vender/workflow'
import AppIcon from '@/app/components/base/app-icon' import AppIcon from '@/app/components/base/app-icon'
import cn from '@/utils/classnames'
type BlockIconProps = { type BlockIconProps = {
type: BlockEnum type: BlockEnum
@ -97,13 +98,14 @@ const BlockIcon: FC<BlockIconProps> = ({
toolIcon, toolIcon,
}) => { }) => {
return ( return (
<div className={` <div className={
flex items-center justify-center border-[0.5px] border-white/2 text-white cn(
${ICON_CONTAINER_CLASSNAME_SIZE_MAP[size]} 'flex items-center justify-center border-[0.5px] border-white/2 text-white',
${ICON_CONTAINER_BG_COLOR_MAP[type]} ICON_CONTAINER_CLASSNAME_SIZE_MAP[size],
${toolIcon && '!shadow-none'} !toolIcon && ICON_CONTAINER_BG_COLOR_MAP[type],
${className} toolIcon && '!shadow-none',
`} className,
)}
> >
{ {
type !== BlockEnum.Tool && ( type !== BlockEnum.Tool && (