mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-01 11:56:25 +02:00
feat: add tool icons for enhanced UI in ComposerAction
This commit is contained in:
parent
9f7da91775
commit
893df1718b
2 changed files with 37 additions and 0 deletions
32
surfsense_web/contracts/enums/toolIcons.tsx
Normal file
32
surfsense_web/contracts/enums/toolIcons.tsx
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
import {
|
||||
BookOpen,
|
||||
Brain,
|
||||
Database,
|
||||
FileText,
|
||||
Globe,
|
||||
ImageIcon,
|
||||
Link2,
|
||||
type LucideIcon,
|
||||
Podcast,
|
||||
ScanLine,
|
||||
Sparkles,
|
||||
Wrench,
|
||||
} from "lucide-react";
|
||||
|
||||
const TOOL_ICONS: Record<string, LucideIcon> = {
|
||||
search_knowledge_base: Database,
|
||||
generate_podcast: Podcast,
|
||||
generate_report: FileText,
|
||||
link_preview: Link2,
|
||||
display_image: ImageIcon,
|
||||
generate_image: Sparkles,
|
||||
scrape_webpage: ScanLine,
|
||||
web_search: Globe,
|
||||
search_surfsense_docs: BookOpen,
|
||||
save_memory: Brain,
|
||||
recall_memory: Brain,
|
||||
};
|
||||
|
||||
export function getToolIcon(name: string): LucideIcon {
|
||||
return TOOL_ICONS[name] ?? Wrench;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue