24 lines
536 B
TypeScript
24 lines
536 B
TypeScript
export function getIntegrationName(name: string) {
|
|
switch (name) {
|
|
case "google_calendar":
|
|
return "Google Calendar";
|
|
case "office365_calendar":
|
|
return "Office 365 Calendar";
|
|
case "zoom_video":
|
|
return "Zoom";
|
|
case "caldav_calendar":
|
|
return "CalDav Server";
|
|
case "apple_calendar":
|
|
return "Apple Calendar";
|
|
default:
|
|
return "Unknown";
|
|
}
|
|
}
|
|
|
|
export function getIntegrationType(name: string) {
|
|
if (name.endsWith("_calendar")) {
|
|
return "Calendar";
|
|
}
|
|
return "Unknown";
|
|
}
|