mirror of
https://github.com/docmost/docmost.git
synced 2025-11-14 22:11:11 +10:00
* configurable trial days
* hide create sso provider in cloud
This commit is contained in:
9
apps/client/src/ee/hooks/use-license.tsx
Normal file
9
apps/client/src/ee/hooks/use-license.tsx
Normal file
@ -0,0 +1,9 @@
|
||||
import { useAtom } from "jotai";
|
||||
import { currentUserAtom } from "@/features/user/atoms/current-user-atom.ts";
|
||||
|
||||
export const useLicense = () => {
|
||||
const [currentUser] = useAtom(currentUserAtom);
|
||||
return { hasLicenseKey: currentUser?.workspace?.hasLicenseKey };
|
||||
};
|
||||
|
||||
export default useLicense;
|
||||
Reference in New Issue
Block a user