export default function(state = [], action) {
  switch (action.type) {
    case 'FILE-LIST':
      return action.list

    case 'CLEAR-FILE-LIST':
      return []

    default:
      return state
  }
}
