mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57: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>
27 lines
701 B
JavaScript
27 lines
701 B
JavaScript
import { frontendURL } from '../../../../helper/URLHelper';
|
|
|
|
const campaigns = accountId => ({
|
|
parentNav: 'campaigns',
|
|
routes: ['campaigns_sms_index', 'campaigns_livechat_index'],
|
|
menuItems: [
|
|
{
|
|
icon: 'arrow-swap',
|
|
label: 'LIVE_CHAT',
|
|
key: 'ongoingCampaigns',
|
|
hasSubMenu: false,
|
|
toState: frontendURL(`accounts/${accountId}/campaigns/live_chat`),
|
|
toStateName: 'campaigns_livechat_index',
|
|
},
|
|
{
|
|
key: 'oneOffCampaigns',
|
|
icon: 'sound-source',
|
|
label: 'SMS',
|
|
hasSubMenu: false,
|
|
toState: frontendURL(`accounts/${accountId}/campaigns/sms`),
|
|
toStateName: 'campaigns_sms_index',
|
|
},
|
|
],
|
|
});
|
|
|
|
export default campaigns;
|