cal.pub0.org/lib/event.ts

6 lines
211 B
TypeScript

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