fetch get data Municipios
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
import { useContext } from 'react';
|
||||
import { ManageMunicipiosContext } from './ManageMunicipiosContext';
|
||||
|
||||
const useManageMunicipiosContext = () => {
|
||||
const context = useContext(ManageMunicipiosContext);
|
||||
|
||||
if (!context) throw new Error('useManageMunicipiosContext must be used within AuthProvider');
|
||||
|
||||
return context;
|
||||
};
|
||||
|
||||
export { useManageMunicipiosContext };
|
||||
Reference in New Issue
Block a user