mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
feat: integrate new modules (#5087)
This commit is contained in:
10
packages/frontend/core/src/hooks/use-quota.ts
Normal file
10
packages/frontend/core/src/hooks/use-quota.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { quotaQuery } from '@affine/graphql';
|
||||
import { useQuery } from '@affine/workspace/affine/gql';
|
||||
|
||||
export const useUserQuota = () => {
|
||||
const { data } = useQuery({
|
||||
query: quotaQuery,
|
||||
});
|
||||
|
||||
return data.currentUser?.quota || null;
|
||||
};
|
||||
Reference in New Issue
Block a user