(calEvent: {
videoCallData?: { type?: string; url?: string };
additionalInformation?: AdditionalInformation;
location?: string | null;
uid?: string | null;
})
| 178 | }; |
| 179 | |
| 180 | export const getLocation = (calEvent: { |
| 181 | videoCallData?: { type?: string; url?: string }; |
| 182 | additionalInformation?: AdditionalInformation; |
| 183 | location?: string | null; |
| 184 | uid?: string | null; |
| 185 | }) => { |
| 186 | const meetingUrl = getVideoCallUrlFromCalEvent(calEvent); |
| 187 | if (meetingUrl) { |
| 188 | return meetingUrl; |
| 189 | } |
| 190 | const providerName = getProviderName(calEvent.location); |
| 191 | return providerName || calEvent.location || ""; |
| 192 | }; |
| 193 | |
| 194 | export const getProviderName = (location?: string | null): string => { |
| 195 | if (location && location.includes("integrations:")) { |
no test coverage detected