content: import React from 'react'
  import PropTypes from 'prop-types'
  import { get } from 'lodash'
  import { connectStateResults, Index } from 'react-instantsearch-dom'
  
  const SearchResultsCount = connectStateResults(({ searchResults }) => {
    return get(searchResults, 'nbHits', 0)
  })
  
  const IndexSearchEntriesCount = ({ indexName }) => {
    return (
      <Index indexName={indexName}>
        <SearchResultsCount />
      </Index>
    )
  }
  
  IndexSearchEntriesCount.propTypes = {
    indexName: PropTypes.string,
  }
  
  export default IndexSearchEntriesCount
  