blob: cab9ada7b2aac2d04c4f651f8b67f3fb8b04f2c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { IEvent } from "../../models/Event.js";
import getConfig from "../config.js";
const config = getConfig();
export const successfulRSVPResponse = ({
event,
newAttendee,
fullAttendee,
}: {
event: IEvent;
newAttendee: { id: string; name: string };
fullAttendee: { _id: string };
}) =>
`<span class="h-card"><a href="${newAttendee.id}" class="u-url mention">@<span>${newAttendee.name}</span></a></span> Thanks for RSVPing! You can remove yourself from the RSVP list by clicking <a href="https://${config.general.domain}/oneclickunattendevent/${event.id}/${fullAttendee._id}">here</a>.`;
|