diff options
Diffstat (limited to 'src/lib/Tools')
| -rw-r--r-- | src/lib/Tools/tools.ts | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lib/Tools/tools.ts b/src/lib/Tools/tools.ts index 82ffef96..c5af7e34 100644 --- a/src/lib/Tools/tools.ts +++ b/src/lib/Tools/tools.ts @@ -1,14 +1,8 @@ +import type { CommandPaletteAction } from '$lib/CommandPalette/actions'; import locale from '$stores/locale'; import { get } from 'svelte/store'; -interface CommandPaletteItem { - name: string; - url: string; - onClick?: () => void; - preventDefault?: boolean; -} - -export const toolsAsCommandPaletteItemSet = () => +export const toolsAsCommandPaletteActions = (): CommandPaletteAction[] => Object.entries(tools) .filter(([id, tool]) => id !== 'default' && !tool.hidden) .map(([id, tool]) => ({ |