import React from 'react'

import ComponentRenderer from './src/templates/component-renderer-with-pagination'

exports.replaceComponentRenderer = ({ props, loader }) => {
  if (props.layout) {
    return null
  }

  return <ComponentRenderer {...props} loader={loader} />
}

import React from 'react'

import ComponentRenderer from './src/templates/component-renderer-with-pagination'

export default {
  replaceComponentRenderer: ({ props, loader }) => {
    if (props.layout) {
      return null
    }

    return <ComponentRenderer {...props} loader={loader} />
  }
}

Convert to either pure CommonJS or pure ES6 (ES6, in this case)
Convert to either pure CommonJS or pure ES6 (ES6, in this case)
