Files
cal.diy/apps/web/modules/bookings/hooks/useBookerUrl.ts
T
Benny JooandDevin AI b3430c8efc refactor: remove 10 trpc imports from features package by moving 16 tRPC-driven components to apps/web/modules (#27336)
* refactor: move Segment, BookerLayoutSelector, CreateLicenseKeyForm from packages/features to apps/web/modules

Co-Authored-By: [email protected] <[email protected]>

* fix: update relative imports to absolute paths in moved files

Co-Authored-By: [email protected] <[email protected]>

* refactor: move useBookingLocation and blocklist components from packages/features to apps/web/modules

Co-Authored-By: [email protected] <[email protected]>

* refactor: move EmbedTabs and embed hooks from packages/features to apps/web/modules

Co-Authored-By: [email protected] <[email protected]>

* fix

* migrate useBookerUrl

* migrate embed tabs

* fix

* fix

* fix

* mv ThemeLabel

* mv settings headers to webn

* update imports

* clean up

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-01-30 04:55:50 -03:00

12 lines
425 B
TypeScript

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;
};
export const useEmbedBookerUrl = () => {
const orgBranding = useOrgBranding();
return orgBranding?.fullDomain ?? WEBAPP_URL;
};