mirror of
https://github.com/makeplane/plane.git
synced 2025-12-18 12:57:52 +01:00
14 lines
244 B
TypeScript
14 lines
244 B
TypeScript
|
|
import { useContext } from "react";
|
||
|
|
|
||
|
|
// context
|
||
|
|
import { UserContext } from "contexts/user.context";
|
||
|
|
|
||
|
|
const useUser = () => {
|
||
|
|
// context
|
||
|
|
const contextData = useContext(UserContext);
|
||
|
|
|
||
|
|
return { ...contextData };
|
||
|
|
};
|
||
|
|
|
||
|
|
export default useUser;
|