import React from 'react'; import PropTypes from 'prop-types'; import Mention from 'antd/lib/mention'; import algoliasearch from 'algoliasearch/lite'; import { InstantSearch, connectAutoComplete } from 'react-instantsearch-dom'; import 'antd/lib/mention/style/css'; const AsyncMention = ({ hits, refine }) => ( hit.name)} onSearchChange={(query) => refine(query)} /> ); AsyncMention.propTypes = { hits: PropTypes.array, refine: PropTypes.func, }; const ConnectedAsyncMention = connectAutoComplete(AsyncMention); const searchClient = algoliasearch( 'latency', '6be0576ff61c053d5f9a3225e2a90f76' ); const App = () => ( ); export default App;