Files
revenue-fe/src/pages/master/postoadms/hooks/useManagePostoAdmsContext.tsx
2025-02-28 14:51:03 +07:00

13 lines
357 B
TypeScript

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