BlueWallet/components/types.ts
Marcos Rodriguez Velez 43bb572629
REF: ToolTipMenu to TSX
2024-05-18 12:48:03 -04:00

31 lines
689 B
TypeScript

import { ViewStyle } from 'react-native';
export interface Action {
id: string | number;
text: string;
icon: {
iconType: string;
iconValue: string;
};
menuTitle?: string;
menuStateOn?: boolean;
disabled?: boolean;
}
export interface ToolTipMenuProps {
actions: Action[] | Action[][];
children: React.ReactNode;
enableAndroidRipple?: boolean;
onPressMenuItem: (id: string) => void;
title?: string;
isMenuPrimaryAction?: boolean;
isButton?: boolean;
renderPreview?: () => React.ReactNode;
onPress?: () => void;
previewValue?: string;
disabled?: boolean;
buttonStyle?: ViewStyle;
onMenuWillShow?: () => void;
onMenuWillHide?: () => void;
}