mirror of
https://github.com/docmost/docmost.git
synced 2025-11-13 12:22:37 +10:00
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;
|