import { frontendURL } from '../../../../helper/URLHelper'; const conversations = accountId => ({ parentNav: 'conversations', routes: [ 'home', 'inbox_dashboard', 'inbox_conversation', 'conversation_through_inbox', 'notifications_dashboard', 'label_conversations', 'conversations_through_label', 'team_conversations', 'conversations_through_team', 'conversation_mentions', 'conversation_through_mentions', 'folder_conversations', 'conversations_through_folders', ], menuItems: [ { icon: 'chat', label: 'ALL_CONVERSATIONS', key: 'conversations', toState: frontendURL(`accounts/${accountId}/dashboard`), toolTip: 'Conversation from all subscribed inboxes', toStateName: 'home', }, { icon: 'mention', label: 'MENTIONED_CONVERSATIONS', key: 'conversation_mentions', toState: frontendURL(`accounts/${accountId}/mentions/conversations`), toStateName: 'conversation_mentions', }, ], }); export default conversations;