feat: groupBy tools autocomplete

This commit is contained in:
Ibrahima G. Coulibaly
2025-07-07 14:18:47 +01:00
parent ec360478cc
commit daec8df499
4 changed files with 82 additions and 32 deletions

View File

@@ -1,4 +1,5 @@
import { UpdateField } from '@components/options/ToolOptions';
import { getToolsByCategory } from '@tools/index';
// Here starting the shared values for string manipulation.
@@ -105,3 +106,7 @@ export function itemCounter(
}
return dict;
}
export const getToolCategoryTitle = (categoryName: string): string =>
getToolsByCategory().find((category) => category.type === categoryName)!
.rawTitle;