mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
24 lines
692 B
TypeScript
24 lines
692 B
TypeScript
import type { CalendarEvent, Person } from "@calcom/types/Calendar";
|
|
|
|
import SMSManager from "../sms-manager";
|
|
|
|
export default class CancelledSeatSMS extends SMSManager {
|
|
constructor(calEvent: CalendarEvent) {
|
|
super(calEvent);
|
|
}
|
|
|
|
getMessage(attendee: Person) {
|
|
const t = attendee.language.translate;
|
|
|
|
const messageText = `${t("no_longer_attending", {
|
|
name: attendee.name,
|
|
})}\n\n${t("event_no_longer_attending_subject", {
|
|
name: this.calEvent.team?.name || this.calEvent.organizer.name,
|
|
date: this.getFormattedDate(attendee.timeZone, attendee.language.locale),
|
|
interpolation: { escapeValue: false },
|
|
})} `;
|
|
|
|
return `${messageText}`;
|
|
}
|
|
}
|