aboutsummaryrefslogtreecommitdiff
path: root/src/content/reducers/setting.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/reducers/setting.js')
-rw-r--r--src/content/reducers/setting.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/content/reducers/setting.js b/src/content/reducers/setting.js
new file mode 100644
index 0000000..22fac6f
--- /dev/null
+++ b/src/content/reducers/setting.js
@@ -0,0 +1,13 @@
+import actions from 'content/actions';
+
+const defaultState = {};
+
+export default function reducer(state = defaultState, action = {}) {
+ switch (action.type) {
+ case actions.SETTING_SET:
+ return Object.assign({}, action.value);
+ default:
+ return state;
+ }
+}
+