first commit
This commit is contained in:
7
calcom/packages/lib/hooks/useBookerUrl.ts
Normal file
7
calcom/packages/lib/hooks/useBookerUrl.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { useOrgBranding } from "@calcom/features/ee/organizations/context/provider";
|
||||
import { WEBAPP_URL, WEBSITE_URL } from "@calcom/lib/constants";
|
||||
|
||||
export const useBookerUrl = () => {
|
||||
const orgBranding = useOrgBranding();
|
||||
return orgBranding?.fullDomain ?? WEBSITE_URL ?? WEBAPP_URL;
|
||||
};
|
||||
Reference in New Issue
Block a user