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.

23 lines (22 loc) 359 B
const reducer = (state, action) => { switch (action.type) { case "open": { return { ...state, opened: true }; } case "close": { return { ...state, opened: false }; } default: throw new Error("invalid action"); } }; export { reducer }; //# sourceMappingURL=reducer.js.map