λР
Size: a a a
λР
L
IK
K
IK
K
IK
DV
DV
L
IK
Kb
export let cloudPhoto = (
{ selected = null, list = [] },
) => ({
upload_photo: (action) => ({
selected: null,
list: action.files
}),
selected_photo: (action) => ({
selected: action.selected,
list
})
})
let creatorReducer = (choose_actions) => (
state,
action
) => {
let shouldChange = choose_actions(state)[action.type]
return shouldChange ? shouldChange(state, action) : state
}
let photoReducer = creatorReducer(cloudPhoto)
dF
IS
IS
AE
IS
AE
IS
AE