detail page port
This commit is contained in:
10
libs/resolveEventType.ts
Normal file
10
libs/resolveEventType.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
enum EVENT_TYPE {
|
||||
'Ticket Purchase' = 'product',
|
||||
'Free RSVP' = 'rsvp',
|
||||
}
|
||||
|
||||
export const resolveEventType = (
|
||||
label: 'Ticket Purchase' | 'Free RSVP',
|
||||
): EVENT_TYPE => {
|
||||
return EVENT_TYPE[label]
|
||||
}
|
||||
Reference in New Issue
Block a user