8 lines
160 B
JavaScript
8 lines
160 B
JavaScript
|
import { createContext, useContext } from 'react';
|
||
|
|
||
|
export const AuthContext = createContext();
|
||
|
|
||
|
export function useAuth() {
|
||
|
return useContext(AuthContext);
|
||
|
}
|