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