Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
switch (action.type) {
case OPEN:
return Object.assign({}, open(state, action), {
size: action.data.size || supportedSizes.small,
behavior: action.data.behavior || supportedBehaviors.squish,
});
case CLOSE:
return defaultPanelState;
case PUSH:
return push(state, action);
case POP:
return pop(state, action);
case MAXIMIZE:
return maximize(state, action);
case MINIMIZE:
return minimize(state, action);
default:
return state;
}
};