UNPKG

@airplane/views

Version:

A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.

20 lines (19 loc) 337 B
const reducer = (state, action) => { switch (action.type) { case "changeSelection": { const { points } = action; return { ...state, selectedPoints: points }; } default: throw new Error("invalid action"); } }; export { reducer }; //# sourceMappingURL=reducer.js.map