7 lines
189 B
TypeScript
7 lines
189 B
TypeScript
|
import React, { useState, useContext } from "react";
|
||
|
|
||
|
export const LoggedInContext = React.createContext(false);
|
||
|
|
||
|
export const useLoggedIn = () => {
|
||
|
return useContext(LoggedInContext);
|
||
|
};
|