save dialog

This commit is contained in:
Jan Prochazka
2021-03-06 18:01:39 +01:00
parent b64b6be68a
commit 423644e9d9
11 changed files with 573 additions and 29 deletions

View File

@@ -0,0 +1,11 @@
import { writable } from 'svelte/store';
export default function createReducer(reducer, initialState): any {
const state = writable(initialState);
function dispatch(action) {
state.update(x => reducer(x, action));
}
return [state, dispatch];
}