Add nav:click event to all main nav items (#10540)
Co-authored-by: Eric Bailey <git@esb.lol>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import {type Events} from '#/analytics/metrics/types'
|
||||
|
||||
export type SharedNavTab =
|
||||
| 'Home'
|
||||
| 'Search'
|
||||
| 'Messages'
|
||||
| 'Notifications'
|
||||
| 'MyProfile'
|
||||
|
||||
export const TAB_TO_NAV_ITEM: Record<
|
||||
SharedNavTab,
|
||||
Events['nav:click']['item']
|
||||
> = {
|
||||
Home: 'home',
|
||||
Search: 'search',
|
||||
Messages: 'chat',
|
||||
Notifications: 'notifications',
|
||||
MyProfile: 'profile',
|
||||
}
|
||||
Reference in New Issue
Block a user