export default (...args) => {
  if (args[0] instanceof Function) {
    return enhancer(...args) // eslint-disable-line
  }