add crud sucos

This commit is contained in:
Wikzyy
2025-03-04 13:23:27 +07:00
parent e34ee32d5a
commit 2e67ffa75a
8 changed files with 665 additions and 71 deletions

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