cal.pub0.org/lib/event.ts

4 lines
198 B
TypeScript

export function getEventName(name: string, eventTitle: string, eventNameTemplate?: string) {
return eventNameTemplate ? eventNameTemplate.replace("{USER}", name) : eventTitle + " with " + name;
}