cal.pub0.org/lib/integrations.ts

20 lines
473 B
TypeScript
Raw Normal View History

2021-04-10 12:02:35 +00:00
export function getIntegrationName(name: String) {
switch(name) {
case "google_calendar":
return "Google Calendar";
case "office365_calendar":
return "Office 365 Calendar";
2021-06-13 11:59:40 +00:00
case "zoom_video":
2021-06-12 23:24:13 +00:00
return "Zoom";
2021-04-10 12:02:35 +00:00
default:
return "Unknown";
}
}
export function getIntegrationType(name: String) {
if (name.endsWith('_calendar')) {
return 'Calendar';
2021-04-10 12:02:35 +00:00
}
return "Unknown";
}