feat: remove appwrite and add nextjs backend
This commit is contained in:
10
frontend/src/hooks/user.hook.ts
Normal file
10
frontend/src/hooks/user.hook.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { createContext, useContext } from "react";
|
||||
import { CurrentUser } from "../types/user.type";
|
||||
|
||||
export const UserContext = createContext<CurrentUser | null>(null);
|
||||
|
||||
const useUser = () => {
|
||||
return useContext(UserContext);
|
||||
};
|
||||
|
||||
export default useUser;
|
||||
Reference in New Issue
Block a user