import { ACTIVE_FILE } from 'actions/types'; export default function(state = -1, action) { if (action.type === ACTIVE_FILE) { return action.file; } return state; }