add Manage Wallet master data
This commit is contained in:
12
src/pages/master/wallet/hooks/useManageWalletContext.tsx
Normal file
12
src/pages/master/wallet/hooks/useManageWalletContext.tsx
Normal file
@ -0,0 +1,12 @@
|
||||
import { useContext } from 'react';
|
||||
import { ManageWalletContext } from './ManageWalletContext';
|
||||
|
||||
const useManageWalletContext = () => {
|
||||
const context = useContext(ManageWalletContext);
|
||||
if (!context) {
|
||||
throw new Error('useManageWalletContext must be used within a ManageWalletContextProvider');
|
||||
}
|
||||
return context;
|
||||
};
|
||||
|
||||
export { useManageWalletContext };
|
||||
Reference in New Issue
Block a user