refactor: remove unused getCategoryIconByTitle function and clean up categoryIcons utility

This commit is contained in:
Johnpaul
2025-09-09 01:24:19 +01:00
parent deb3d942b8
commit cb3a29623b
2 changed files with 0 additions and 21 deletions

View File

@@ -512,7 +512,6 @@ export const useDialogService = () => {
showAboutDialog,
showExecutionErrorDialog,
showTemplateWorkflowsDialog,
// showWorkflowTemplateSelectorDialog,
showManagerDialog,
showManagerProgressDialog,
showApiNodesSignInDialog,

View File

@@ -50,23 +50,3 @@ export const getCategoryIcon = (categoryId: string): string => {
// Return mapped icon or fallback to folder
return iconMap[categoryId.toLowerCase()] || 'folder'
}
/**
* Maps category titles to their corresponding Lucide icon names
*/
export const getCategoryIconByTitle = (title: string): string => {
const titleMap: Record<string, string> = {
'Getting Started': 'graduation-cap',
'Generation Type': 'sparkles',
'Closed Source Models': 'hand-coins',
'API Nodes': 'hand-coins',
'Small Models': 'zap',
Performance: 'zap',
'Mac Compatible': 'command',
'LoRA Training': 'dumbbell',
Extensions: 'puzzle',
'Tools & Building': 'wrench'
}
return titleMap[title] || 'folder'
}