mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
datasource icon
This commit is contained in:
@ -6,6 +6,7 @@ import {
|
||||
Answer,
|
||||
Assigner,
|
||||
Code,
|
||||
Datasource,
|
||||
DocsExtractor,
|
||||
End,
|
||||
Home,
|
||||
@ -62,7 +63,7 @@ const getIcon = (type: BlockEnum, className: string) => {
|
||||
[BlockEnum.ListFilter]: <ListFilter className={className} />,
|
||||
[BlockEnum.Agent]: <Agent className={className} />,
|
||||
[BlockEnum.KnowledgeBase]: <KnowledgeBase className={className} />,
|
||||
[BlockEnum.DataSource]: <VariableX className={className} />,
|
||||
[BlockEnum.DataSource]: <Datasource className={className} />,
|
||||
}[type]
|
||||
}
|
||||
const ICON_CONTAINER_BG_COLOR_MAP: Record<string, string> = {
|
||||
@ -87,6 +88,7 @@ const ICON_CONTAINER_BG_COLOR_MAP: Record<string, string> = {
|
||||
[BlockEnum.ListFilter]: 'bg-util-colors-cyan-cyan-500',
|
||||
[BlockEnum.Agent]: 'bg-util-colors-indigo-indigo-500',
|
||||
[BlockEnum.KnowledgeBase]: 'bg-util-colors-warning-warning-500',
|
||||
[BlockEnum.DataSource]: 'bg-components-icon-bg-midnight-solid',
|
||||
}
|
||||
const BlockIcon: FC<BlockIconProps> = ({
|
||||
type,
|
||||
|
||||
Reference in New Issue
Block a user