cal.pub0.org/apps/web/lib/hooks/useCurrentUserId.ts

10 lines
193 B
TypeScript
Raw Normal View History

2022-05-04 21:05:57 +00:00
import useMeQuery from "./useMeQuery";
export const useCurrentUserId = () => {
const query = useMeQuery();
const user = query.data;
return user?.id;
};
export default useCurrentUserId;