This commit is contained in:
fro1991
2025-02-01 19:49:27 +07:00
parent 42c2a8e481
commit 13a2c4d42c
57 changed files with 159 additions and 295 deletions

View File

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