Co-authored-by: Omar López <zomars@me.com> Co-authored-by: Joe Au-Yeung <j.auyeung419@gmail.com> Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com>
18 lines
555 B
TypeScript
18 lines
555 B
TypeScript
import type { CalendarEvent, Person } from "@calcom/types/Calendar";
|
|
|
|
import SMSManager from "../sms-manager";
|
|
|
|
export default class EventDeclinedSMS extends SMSManager {
|
|
constructor(calEvent: CalendarEvent) {
|
|
super(calEvent);
|
|
}
|
|
|
|
getMessage(attendee: Person) {
|
|
const t = attendee.language.translate;
|
|
return `${t("hey_there")} ${attendee.name}, ${t("event_request_declined")} ${t("event_declined_subject", {
|
|
title: this.calEvent.title,
|
|
date: this.getFormattedDate(attendee.timeZone, attendee.language.locale),
|
|
})}`;
|
|
}
|
|
}
|