diff options
| author | Fuwn <[email protected]> | 2025-05-15 02:56:29 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-05-15 02:56:29 -0700 |
| commit | f7df33ccfd189d12f5775bc8fb4855ffc3c81e1c (patch) | |
| tree | 59e16a03f830112a693924f0a488d242c6b7439d /src/lib/CommandPalette/actions.ts | |
| parent | feat(CommandPalette): Add extra tags to Settings action (diff) | |
| download | due.moe-f7df33ccfd189d12f5775bc8fb4855ffc3c81e1c.tar.xz due.moe-f7df33ccfd189d12f5775bc8fb4855ffc3c81e1c.zip | |
refactor(CommandPalette): Move and rename action type
Diffstat (limited to 'src/lib/CommandPalette/actions.ts')
| -rw-r--r-- | src/lib/CommandPalette/actions.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/CommandPalette/actions.ts b/src/lib/CommandPalette/actions.ts index 1850d398..a62ae529 100644 --- a/src/lib/CommandPalette/actions.ts +++ b/src/lib/CommandPalette/actions.ts @@ -1,4 +1,12 @@ -export const defaultActions = [ +export interface CommandPaletteAction { + name: string; + url: string; + onClick?: () => void; + preventDefault?: boolean; + tags?: string[]; +} + +export const defaultActions: CommandPaletteAction[] = [ { name: 'Home', url: '/', |