mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-30 01:55:17 +08:00

Support filter knowledge by metadata. Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: NFish <douxc512@gmail.com>
11 lines
301 B
TypeScript
11 lines
301 B
TypeScript
import { DataType } from '../types'
|
|
import { RiHashtag, RiTextSnippet, RiTimeLine } from '@remixicon/react'
|
|
|
|
export const getIcon = (type: DataType) => {
|
|
return ({
|
|
[DataType.string]: RiTextSnippet,
|
|
[DataType.number]: RiHashtag,
|
|
[DataType.time]: RiTimeLine,
|
|
}[type] || RiTextSnippet)
|
|
}
|