2026-06-03 19:50:49 +08:00
|
|
|
|
import { BookMarked, BookOpen, Bot, Plug } from 'lucide-vue-next'
|
|
|
|
|
|
|
|
|
|
|
|
export const MENTION_ICON_SIZE = 15
|
|
|
|
|
|
export const MENTION_ICON_STROKE_WIDTH = 2.2
|
|
|
|
|
|
|
2026-06-05 01:29:34 +08:00
|
|
|
|
// 注意:file 类型的图标由 FileTypeIcon 组件直接渲染,此处仅处理其余 mention 类型。
|
2026-06-03 19:50:49 +08:00
|
|
|
|
const MENTION_TYPE_ICON_COMPONENTS = {
|
|
|
|
|
|
knowledge: BookOpen,
|
|
|
|
|
|
skill: BookMarked,
|
|
|
|
|
|
mcp: Plug,
|
|
|
|
|
|
subagent: Bot
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-05 01:29:34 +08:00
|
|
|
|
export const getMentionIconComponent = (type) => MENTION_TYPE_ICON_COMPONENTS[type] || Plug
|
2026-06-03 19:50:49 +08:00
|
|
|
|
|
2026-06-05 01:29:34 +08:00
|
|
|
|
export const getMentionIconStyle = () => null
|