2023-07-24 07:25:55 -03:00
|
|
|
import { useOrgBranding } from "@calcom/features/ee/organizations/context/provider";
|
2023-07-25 06:28:57 -03:00
|
|
|
import { CAL_URL, WEBAPP_URL } from "@calcom/lib/constants";
|
2023-07-13 10:52:21 -03:00
|
|
|
|
|
|
|
export const useBookerUrl = () => {
|
2023-07-24 07:25:55 -03:00
|
|
|
const orgBranding = useOrgBranding();
|
2023-07-25 06:28:57 -03:00
|
|
|
return orgBranding?.fullDomain ?? CAL_URL ?? WEBAPP_URL;
|
2023-07-13 10:52:21 -03:00
|
|
|
};
|