18 lines
419 B
TypeScript
18 lines
419 B
TypeScript
export function getIntegrationName(name: String) {
|
|
switch(name) {
|
|
case "google_calendar":
|
|
return "Google Calendar";
|
|
case "office365_calendar":
|
|
return "Office 365 Calendar";
|
|
default:
|
|
return "Unknown";
|
|
}
|
|
}
|
|
|
|
export function getIntegrationType(name: String) {
|
|
if (name.endsWith('_calendar')) {
|
|
return 'Calendar';
|
|
}
|
|
return "Unknown";
|
|
}
|