Write `formReducer(state, action)` handling `{ type: "setAmount", amount }` and `{ type: "setRecipient", recipient }`, updating just that field and preserving others.
Required in your answer: switch (action.type)...
Transpiled, then run in a sandbox
function formReducer(state, action) {
switch (action.type) {
// TODO
}
}