mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-13 11:09:20 +01:00
REF: Use bottom tabs
This commit is contained in:
parent
9421511f74
commit
c67eea8155
1 changed files with 19 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
import { useCallback } from 'react';
|
||||
|
||||
type MenuActionHandler = () => void;
|
||||
|
||||
interface MenuElementsHook {
|
||||
|
@ -6,6 +8,22 @@ interface MenuElementsHook {
|
|||
isMenuElementsSupported: boolean;
|
||||
}
|
||||
|
||||
declare const useMenuElements: () => MenuElementsHook;
|
||||
// Default implementation for platforms other than iOS
|
||||
const useMenuElements = (): MenuElementsHook => {
|
||||
const registerTransactionsHandler = useCallback((_handler: MenuActionHandler, _screenKey?: string): boolean => {
|
||||
// Non-functional stub for non-iOS platforms
|
||||
return false;
|
||||
}, []);
|
||||
|
||||
const unregisterTransactionsHandler = useCallback((_screenKey: string): void => {
|
||||
// No-op for non-supported platforms
|
||||
}, []);
|
||||
|
||||
return {
|
||||
registerTransactionsHandler,
|
||||
unregisterTransactionsHandler,
|
||||
isMenuElementsSupported: false, // Not supported on platforms other than iOS
|
||||
};
|
||||
};
|
||||
|
||||
export default useMenuElements;
|
||||
|
|
Loading…
Add table
Reference in a new issue