26 lines
385 B
JavaScript
26 lines
385 B
JavaScript
/**
|
|
* Internal dependencies
|
|
*/
|
|
import TYPES from './action-types';
|
|
|
|
export function setActiveItem( activeItem ) {
|
|
return {
|
|
type: TYPES.SET_ACTIVE_ITEM,
|
|
activeItem,
|
|
};
|
|
}
|
|
|
|
export function setMenuItems( menuItems ) {
|
|
return {
|
|
type: TYPES.SET_MENU_ITEMS,
|
|
menuItems,
|
|
};
|
|
}
|
|
|
|
export function addMenuItems( menuItems ) {
|
|
return {
|
|
type: TYPES.ADD_MENU_ITEMS,
|
|
menuItems,
|
|
};
|
|
}
|