* 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>
12 lines
425 B
TypeScript
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;
|
|
}; |