31 lines
822 B
JavaScript
31 lines
822 B
JavaScript
|
import { frontendURL } from '../../helper/URLHelper';
|
||
|
|
||
|
const campaigns = accountId => ({
|
||
|
routes: ['settings_account_campaigns', 'one_off'],
|
||
|
menuItems: {
|
||
|
back: {
|
||
|
icon: 'ion-ios-arrow-back',
|
||
|
label: 'HOME',
|
||
|
hasSubMenu: false,
|
||
|
toStateName: 'home',
|
||
|
toState: frontendURL(`accounts/${accountId}/dashboard`),
|
||
|
},
|
||
|
ongoingCampaigns: {
|
||
|
icon: 'ion-arrow-swap',
|
||
|
label: 'ONGOING',
|
||
|
hasSubMenu: false,
|
||
|
toState: frontendURL(`accounts/${accountId}/campaigns/ongoing`),
|
||
|
toStateName: 'settings_account_campaigns',
|
||
|
},
|
||
|
onOffCampaigns: {
|
||
|
icon: 'ion-radio-waves',
|
||
|
label: 'ONE_OFF',
|
||
|
hasSubMenu: false,
|
||
|
toState: frontendURL(`accounts/${accountId}/campaigns/one_off`),
|
||
|
toStateName: 'one_off',
|
||
|
},
|
||
|
},
|
||
|
});
|
||
|
|
||
|
export default campaigns;
|