mirror of https://github.com/lidarr/Lidarr
23 lines
550 B
JavaScript
23 lines
550 B
JavaScript
import { handleActions } from 'redux-actions';
|
|
import * as types from 'Store/Actions/actionTypes';
|
|
import createSetReducer from './Creators/createSetReducer';
|
|
import createUpdateReducer from './Creators/createUpdateReducer';
|
|
|
|
export const defaultState = {
|
|
isFetching: false,
|
|
isPopulated: false,
|
|
error: null,
|
|
items: []
|
|
};
|
|
|
|
const reducerSection = 'tags';
|
|
|
|
const tagReducers = handleActions({
|
|
|
|
[types.SET]: createSetReducer(reducerSection),
|
|
[types.UPDATE]: createUpdateReducer(reducerSection)
|
|
|
|
}, defaultState);
|
|
|
|
export default tagReducers;
|