mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
1ad53c2581
* feat(ee): public sharing controls * lint
13 lines
357 B
TypeScript
13 lines
357 B
TypeScript
import { isCloud } from "@/lib/config";
|
|
import useLicense from "@/ee/hooks/use-license";
|
|
import usePlan from "@/ee/hooks/use-plan";
|
|
|
|
const useEnterpriseAccess = () => {
|
|
const { hasLicenseKey } = useLicense();
|
|
const { isBusiness } = usePlan();
|
|
|
|
return (isCloud() && isBusiness) || (!isCloud() && hasLicenseKey);
|
|
};
|
|
|
|
export default useEnterpriseAccess;
|