mirror of
https://github.com/khairul169/vaulterm.git
synced 2026-09-15 17:03:30 +07:00
feat: team draft
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import authRepo from "@/repositories/auth";
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
|
||||
export const useUser = () => {
|
||||
const { data: user } = useQuery({
|
||||
queryKey: ["auth", "user"],
|
||||
queryFn: authRepo.getUser,
|
||||
});
|
||||
return user;
|
||||
};
|
||||
Reference in New Issue
Block a user