mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-09-17 18:20:11 +02:00
f48e6b1a3e
* chore: add @ as alias for frontend root * fix: remove bad tag
19 lines
348 B
JavaScript
19 lines
348 B
JavaScript
import { useContext } from "react";
|
|
import { AuthContext } from "@/AuthContext";
|
|
|
|
// interface IStore {
|
|
// store: {
|
|
// user: {
|
|
// id: string;
|
|
// username: string | null;
|
|
// role: string;
|
|
// };
|
|
// };
|
|
// }
|
|
|
|
export default function useUser() {
|
|
const context = useContext(AuthContext);
|
|
|
|
return { ...context.store };
|
|
}
|