diff options
author | Eric Bailey <git@esb.lol> | 2024-02-29 10:31:45 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-29 10:31:45 -0600 |
commit | 1a5afccdb809d7a8a2e9ebb356b499135a5ff175 (patch) | |
tree | 81af484bd58b75457ab939b911cafde860ec7559 /src | |
parent | a35976cdc9b6467ad8b6e0c4ff46ba684fee9064 (diff) | |
download | voidsky-1a5afccdb809d7a8a2e9ebb356b499135a5ff175.tar.zst |
Add TagMenu controls stub on web (#3028)
Diffstat (limited to 'src')
-rw-r--r-- | src/components/TagMenu/index.web.tsx | 15 |
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, |