mirror of
https://github.com/yldio/copilot.git
synced 2024-11-11 05:40:11 +02:00
18 lines
288 B
JavaScript
18 lines
288 B
JavaScript
|
const redux = require('redux');
|
||
|
const services = require('./services');
|
||
|
|
||
|
const {
|
||
|
createStore
|
||
|
} = redux;
|
||
|
|
||
|
const reducer = (state, action) => {
|
||
|
return {
|
||
|
...state,
|
||
|
data: services
|
||
|
};
|
||
|
};
|
||
|
|
||
|
module.exports = (state = Object.freeze({})) => {
|
||
|
return createStore(reducer, state);
|
||
|
};
|