Files
cal.diy/packages/lib/hooks/useBookerUrl.ts
T
2023-07-24 10:25:55 +00:00

8 lines
265 B
TypeScript

import { useOrgBranding } from "@calcom/features/ee/organizations/context/provider";
import { WEBAPP_URL } from "@calcom/lib/constants";
export const useBookerUrl = () => {
const orgBranding = useOrgBranding();
return orgBranding?.fullDomain ?? WEBAPP_URL;
};