aboutsummaryrefslogtreecommitdiff
path: root/src/lib/CommandPalette/actions.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-05-15 02:56:29 -0700
committerFuwn <[email protected]>2025-05-15 02:56:29 -0700
commitf7df33ccfd189d12f5775bc8fb4855ffc3c81e1c (patch)
tree59e16a03f830112a693924f0a488d242c6b7439d /src/lib/CommandPalette/actions.ts
parentfeat(CommandPalette): Add extra tags to Settings action (diff)
downloaddue.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.ts10
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: '/',