| 1 2 3 4 5 6 7 8 9 10 11 12 13 | 1x 1x 5x 5x 1x | export const OPEN_POPUP = 'OPEN_POPUP';
export const CLOSE_POPUP = 'CLOSE_POPUP';
export function openPopup(name, {top, left, uuid} = {}) {
let action = {type: OPEN_POPUP, name};
return top && left && uuid ? {...action, position: {top, left, uuid}} : action;
}
export function closePopup() {
return {
type: CLOSE_POPUP
}
} |