cal.pub0.org/apps/web/components/team/currentUser.tsx

8 lines
166 B
TypeScript
Raw Normal View History

import { useMeQuery } from "@components/Shell";
export const useCurrentUser = () => {
const query = useMeQuery();
const user = query.data;
return user?.id;
};