Skip to content

Commit

Permalink
Add TagMenu controls stub on web (#3028)
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey authored Feb 29, 2024
1 parent a35976c commit 1a5afcc
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/components/TagMenu/index.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1a5afcc

Please sign in to comment.