8 lines
156 B
JavaScript
8 lines
156 B
JavaScript
|
import {useContext} from 'react';
|
||
|
|
||
|
import {SessionContext} from './context';
|
||
|
|
||
|
export default function useSession() {
|
||
|
return useContext(SessionContext);
|
||
|
}
|