dify/web/app/components/datasets/metadata/utils/get-icon.ts
Stephen Zhou f2842da397
chore(web): new lint setup (#30020)
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
2025-12-23 16:58:55 +08:00

11 lines
301 B
TypeScript

import { RiHashtag, RiTextSnippet, RiTimeLine } from '@remixicon/react'
import { DataType } from '../types'
export const getIcon = (type: DataType) => {
return ({
[DataType.string]: RiTextSnippet,
[DataType.number]: RiHashtag,
[DataType.time]: RiTimeLine,
}[type] || RiTextSnippet)
}