mirror of
https://github.com/docmost/docmost.git
synced 2026-05-20 08:34:04 +08:00
* configurable trial days
* hide create sso provider in cloud
This commit is contained in:
@@ -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