cal.pub0.org/lib/event.ts

6 lines
211 B
TypeScript
Raw Normal View History

2021-06-15 15:26:16 +00:00
export function getEventName(name: string, eventTitle: string, eventNameTemplate?: string) {
return eventNameTemplate
? eventNameTemplate.replace("{USER}", name)
: eventTitle + ' with ' + name
}