Files
revenue-fe/src/pages/master/reward/hooks/useManageRewardContext.tsx
Raja Oktafrianto ecff71247c update manage reward
2025-04-08 11:15:34 +07:00

13 lines
339 B
TypeScript

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