mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-13 19:16:52 +01:00
15 lines
469 B
TypeScript
15 lines
469 B
TypeScript
type MenuActionHandler = () => void;
|
|
|
|
interface MenuElementsHook {
|
|
registerTransactionsHandler: (handler: MenuActionHandler, screenKey?: string) => boolean;
|
|
unregisterTransactionsHandler: (screenKey: string) => void;
|
|
isMenuElementsSupported: boolean;
|
|
}
|
|
|
|
const useMenuElements = (): MenuElementsHook => ({
|
|
registerTransactionsHandler: () => false,
|
|
unregisterTransactionsHandler: () => {},
|
|
isMenuElementsSupported: false,
|
|
});
|
|
|
|
export default useMenuElements;
|