You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
499 B

const initialState = {
list: [],
info: { users: [] },
bio: {
album: [],
images: [],
videos: [],
music: [],
documnet: [],
link: [],
},
};
export default function chat(state = initialState, action) {
let { type, data } = action;
switch (type) {
case 'chat/list':
return { ...state, list: data };
case 'chat/info':
return { ...state, info: data };
case 'chat/bio':
return { ...state, bio: data };
default:
return state;
}
}