演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。 Co-authored-by: Cursor <cursoragent@cursor.com>
15 lines
451 B
TypeScript
15 lines
451 B
TypeScript
'use client'
|
|
import { RETRIEVE_METHOD } from '@/types/app'
|
|
import { retrievalIcon } from '../../create/icons'
|
|
|
|
export const getIcon = (type: RETRIEVE_METHOD) => {
|
|
return (
|
|
{
|
|
[RETRIEVE_METHOD.semantic]: retrievalIcon.vector,
|
|
[RETRIEVE_METHOD.fullText]: retrievalIcon.fullText,
|
|
[RETRIEVE_METHOD.hybrid]: retrievalIcon.hybrid,
|
|
[RETRIEVE_METHOD.keywordSearch]: retrievalIcon.vector,
|
|
}[type] || retrievalIcon.vector
|
|
)
|
|
}
|