diff options
author | Eric Bailey <git@esb.lol> | 2024-08-19 14:21:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-19 12:21:29 -0700 |
commit | e54298ec2c9a04aabe40ee7719962e2e33be23ec (patch) | |
tree | 7b042cb6cea29dbc0c1a37af6949cc5ec452dae2 /src/components/Menu/types.ts | |
parent | f235be9819286c38e7c76142a62d39e22a7746d1 (diff) | |
download | voidsky-e54298ec2c9a04aabe40ee7719962e2e33be23ec.tar.zst |
Expose more methods, support disabled items (#4954)
Diffstat (limited to 'src/components/Menu/types.ts')
-rw-r--r-- | src/components/Menu/types.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/components/Menu/types.ts b/src/components/Menu/types.ts index e710971ee..2f7aea5de 100644 --- a/src/components/Menu/types.ts +++ b/src/components/Menu/types.ts @@ -1,18 +1,22 @@ import React from 'react' import { + AccessibilityProps, GestureResponderEvent, PressableProps, - AccessibilityProps, } from 'react-native' -import {Props as SVGIconProps} from '#/components/icons/common' -import * as Dialog from '#/components/Dialog' import {TextStyleProp, ViewStyleProp} from '#/alf' +import * as Dialog from '#/components/Dialog' +import {Props as SVGIconProps} from '#/components/icons/common' export type ContextType = { control: Dialog.DialogOuterProps['control'] } +export type ItemContextType = { + disabled: boolean +} + export type RadixPassThroughTriggerProps = { id: string type: 'button' |