add crud provider

This commit is contained in:
Wikzyy
2025-03-10 12:54:48 +07:00
parent 7c8d03f713
commit 8c930ae17a
7 changed files with 794 additions and 4 deletions

View File

@ -0,0 +1,12 @@
import { useContext } from 'react';
import { ManageProviderContext } from './ManageProviderContext';
const useManageProviderContext = () => {
const context = useContext(ManageProviderContext);
if (!context) throw new Error('useManageProviderContext must be used within AuthProvider');
return context;
};
export { useManageProviderContext };