REF: Use bottom tabs

This commit is contained in:
Marcos Rodriguez Velez 2025-03-09 07:45:19 -04:00
parent 9421511f74
commit c67eea8155

View file

@ -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;