mirror of
https://github.com/morten-olsen/catpic.delivery.git
synced 2026-02-08 01:46:26 +01:00
Multi session support
This commit is contained in:
9
src/hooks/useSessions.ts
Normal file
9
src/hooks/useSessions.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { useContext } from 'react';
|
||||
import SessionsContext from '../contexts/SessionsContext';
|
||||
|
||||
const useSessions = () => {
|
||||
const context = useContext(SessionsContext);
|
||||
return context;
|
||||
};
|
||||
|
||||
export default useSessions;
|
||||
Reference in New Issue
Block a user