2024-01-02 11:00:00 -03:00
|
|
|
import { CAL_URL } from "../constants";
|
2023-12-19 06:33:30 -03:00
|
|
|
import { getBrand } from "../server/getBrand";
|
|
|
|
|
|
|
|
export const getBookerBaseUrl = async (user: { organizationId: number | null }) => {
|
|
|
|
const orgBrand = await getBrand(user.organizationId);
|
2024-01-02 11:00:00 -03:00
|
|
|
return orgBrand?.fullDomain ?? CAL_URL;
|
2023-12-19 06:33:30 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
export const getTeamBookerUrl = async (team: { organizationId: number | null }) => {
|
|
|
|
const orgBrand = await getBrand(team.organizationId);
|
2024-01-02 11:00:00 -03:00
|
|
|
return orgBrand?.fullDomain ?? CAL_URL;
|
2023-12-19 06:33:30 -03:00
|
|
|
};
|