10 lines
161 B
TypeScript
10 lines
161 B
TypeScript
import { useContext } from "react"
|
|
import AuthContext from "./auth-provider"
|
|
|
|
|
|
function useAuth() {
|
|
return useContext(AuthContext);
|
|
}
|
|
|
|
export default useAuth;
|