ui: scratchpad sidebar

This commit is contained in:
undefined committed 2022-08-01 22:56:04 +08:00
1 parent 981f8a4b9d
commit e3a5543d9f
14 files changed
+239 -65

No files matched your search

@@ -0,0 +1,10 @@
export default function reducer(state = {}, action) {
if (action.type === 'SCRATCHPAD_STATE_UPDATE') {
const { key, value } = action.payload;
return {
...state,
[key]: value,
};
}
return state;
}