cal.pub0.org/packages/lib/hooks/useBookerUrl.ts

8 lines
266 B
TypeScript

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