let initialState = {
posts: [] as Array<PostType>,
profile: null as ProfileType | null,
avatar: null as PhotosType | null,
status: '',
isEdit: false,
}
case 'SN/PROFILE/SAVE_PHOTO_SUCCESS': {
return {
...state,
avatar: action.photos,
}
}