2025-03-02 22:12:50 -04:00
|
|
|
import React from 'react';
|
2024-08-25 10:47:44 -04:00
|
|
|
import DevMenu from '../components/DevMenu';
|
2025-02-17 15:24:05 -04:00
|
|
|
import MainRoot from './index';
|
2025-03-02 22:12:50 -04:00
|
|
|
import useCompanionListeners from '../hooks/useCompanionListeners';
|
2024-05-18 11:36:16 -04:00
|
|
|
|
|
|
|
const MasterView = () => {
|
2025-03-02 22:12:50 -04:00
|
|
|
// Initialize companion listeners only when wallets are initialized
|
|
|
|
// The hook checks walletsInitialized internally, so it won't run until ready
|
|
|
|
useCompanionListeners();
|
2024-05-18 11:36:16 -04:00
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<MainRoot />
|
2024-08-25 13:37:33 -04:00
|
|
|
{__DEV__ && <DevMenu />}
|
2024-05-18 11:36:16 -04:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default MasterView;
|