fetch get data Municipios

This commit is contained in:
Wikzyy
2025-02-26 17:07:12 +07:00
parent c82abc3f1b
commit 1e9d347b4d
3 changed files with 170 additions and 0 deletions

View File

@ -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 };