Files
revenue-fe/src/pages/master/provider/hooks/useManageProviderContext.tsx
2025-03-10 12:54:48 +07:00

13 lines
351 B
TypeScript

import { useContext } from 'react';
import { ManageProviderContext } from './ManageProviderContext';
const useManageProviderContext = () => {
const context = useContext(ManageProviderContext);
if (!context) throw new Error('useManageProviderContext must be used within AuthProvider');
return context;
};
export { useManageProviderContext };