| 9 | import User from '../model/User'; |
| 10 | |
| 11 | interface IUserContext { |
| 12 | user: User | undefined; |
| 13 | setUser: Dispatch<SetStateAction<User | undefined>>; |
| 14 | isAdmin: () => boolean; |
| 15 | } |
| 16 | |
| 17 | const UserContext = createContext<IUserContext>({ |
| 18 | user: undefined, |
nothing calls this directly
no outgoing calls
no test coverage detected