appbaseio/dejaVu

View on GitHub
packages/browser/src/reducers/currentIds.js

Summary

Maintainability
A
35 mins
Test Coverage
import { CURRENT_IDS } from '../actions/constants';

const currentIds = (state = [], action) => {
    switch (action.type) {
        case CURRENT_IDS.SET_CURRENT_IDS:
            return action.ids;
        default:
            return state;
    }
};

const getCurrentIds = state => state.currentIds;

export { getCurrentIds };

export default currentIds;