old_contents: import INITIAL_STATE from '../INITIAL_STATE';
  // @flow
  
  import { actions } from '../actions/websocket';
  
  const { AFK_SET } = actions;
  
  
  function afkReducer(state = INITIAL_STATE.isAfk, action) {
    switch (action.type) {
      case AFK_SET:
        return action.payload[0];
    }
    return state;
  }
  
  export default afkReducer;
  
new_contents: import INITIAL_STATE from '../INITIAL_STATE';
  import { actions } from '../actions/websocket';
  
  const { AFK_SET } = actions;
  
  
  function afkReducer(state = INITIAL_STATE.isAfk, action) {
    switch (action.type) {
      case AFK_SET:
        return action.payload[0];
    }
    return state;
  }
  
  export default afkReducer;
  
subject: remove useless flow header in afk reducer