mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
3b4e414c97
* hide create sso provider in cloud
10 lines
294 B
TypeScript
10 lines
294 B
TypeScript
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;
|