about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-02-29 10:31:45 -0600
committerGitHub <noreply@github.com>2024-02-29 10:31:45 -0600
commit1a5afccdb809d7a8a2e9ebb356b499135a5ff175 (patch)
tree81af484bd58b75457ab939b911cafde860ec7559 /src
parenta35976cdc9b6467ad8b6e0c4ff46ba684fee9064 (diff)
downloadvoidsky-1a5afccdb809d7a8a2e9ebb356b499135a5ff175.tar.zst
Add TagMenu controls stub on web (#3028)
Diffstat (limited to 'src')
-rw-r--r--src/components/TagMenu/index.web.tsx15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/components/TagMenu/index.web.tsx b/src/components/TagMenu/index.web.tsx
index 31187112f..3aebfbba2 100644
--- a/src/components/TagMenu/index.web.tsx
+++ b/src/components/TagMenu/index.web.tsx
@@ -14,8 +14,21 @@ import {
 } from '#/state/queries/preferences'
 import {enforceLen} from '#/lib/strings/helpers'
 import {web} from '#/alf'
+import * as Dialog from '#/components/Dialog'
 
-export function useTagMenuControl() {}
+export function useTagMenuControl(): Dialog.DialogControlProps {
+  return {
+    id: '',
+    // @ts-ignore
+    ref: null,
+    open: () => {
+      throw new Error(`TagMenu controls are only available on native platforms`)
+    },
+    close: () => {
+      throw new Error(`TagMenu controls are only available on native platforms`)
+    },
+  }
+}
 
 export function TagMenu({
   children,