mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
<img width="1439" alt="Screenshot 2024-10-30 at 8 58 12 PM" src="https://github.com/user-attachments/assets/26231270-5e73-40fb-9efa-c661585ebe7c"> Fixes https://linear.app/chatwoot/project/campaign-redesign-f82bede26ca7/overview --------- Co-authored-by: Pranav <pranavrajs@gmail.com> Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
71 lines
1.9 KiB
JavaScript
71 lines
1.9 KiB
JavaScript
import { FEATURE_FLAGS } from '../../../../featureFlags';
|
|
import { frontendURL } from '../../../../helper/URLHelper';
|
|
|
|
const primaryMenuItems = accountId => [
|
|
{
|
|
icon: 'mail-inbox',
|
|
key: 'inboxView',
|
|
label: 'INBOX_VIEW',
|
|
featureFlag: FEATURE_FLAGS.INBOX_VIEW,
|
|
toState: frontendURL(`accounts/${accountId}/inbox-view`),
|
|
toStateName: 'inbox_view',
|
|
},
|
|
{
|
|
icon: 'chat',
|
|
key: 'conversations',
|
|
label: 'CONVERSATIONS',
|
|
toState: frontendURL(`accounts/${accountId}/dashboard`),
|
|
toStateName: 'home',
|
|
},
|
|
{
|
|
icon: 'captain',
|
|
key: 'captain',
|
|
label: 'CAPTAIN',
|
|
featureFlag: FEATURE_FLAGS.CAPTAIN,
|
|
toState: frontendURL(`accounts/${accountId}/captain`),
|
|
toStateName: 'captain',
|
|
},
|
|
{
|
|
icon: 'book-contacts',
|
|
key: 'contacts',
|
|
label: 'CONTACTS',
|
|
featureFlag: FEATURE_FLAGS.CRM,
|
|
toState: frontendURL(`accounts/${accountId}/contacts`),
|
|
toStateName: 'contacts_dashboard',
|
|
},
|
|
{
|
|
icon: 'arrow-trending-lines',
|
|
key: 'reports',
|
|
label: 'REPORTS',
|
|
featureFlag: FEATURE_FLAGS.REPORTS,
|
|
toState: frontendURL(`accounts/${accountId}/reports`),
|
|
toStateName: 'account_overview_reports',
|
|
},
|
|
{
|
|
icon: 'megaphone',
|
|
key: 'campaigns',
|
|
label: 'CAMPAIGNS',
|
|
featureFlag: FEATURE_FLAGS.CAMPAIGNS,
|
|
toState: frontendURL(`accounts/${accountId}/campaigns`),
|
|
toStateName: 'campaigns_ongoing_index',
|
|
},
|
|
{
|
|
icon: 'library',
|
|
key: 'helpcenter',
|
|
label: 'HELP_CENTER.TITLE',
|
|
featureFlag: FEATURE_FLAGS.HELP_CENTER,
|
|
alwaysVisibleOnChatwootInstances: true,
|
|
toState: frontendURL(`accounts/${accountId}/portals/portal_articles_index`),
|
|
toStateName: 'portals_index',
|
|
},
|
|
{
|
|
icon: 'settings',
|
|
key: 'settings',
|
|
label: 'SETTINGS',
|
|
toState: frontendURL(`accounts/${accountId}/settings`),
|
|
toStateName: 'settings_home',
|
|
},
|
|
];
|
|
|
|
export default primaryMenuItems;
|