import React from 'react'; import { observer } from 'mobx-react'; import _ from 'lodash'; import { Flex } from 'reflexbox'; import Layout, { Title } from 'components/Layout'; import CenteredContent from 'components/CenteredContent'; import SearchField from './components/SearchField'; import DocumentPreview from 'components/DocumentPreview'; import styles from './Search.scss'; import SearchStore from './SearchStore'; @observer class Search extends React.Component { static store; constructor(props) { super(props); this.store = new SearchStore(); } render() { const search = _.debounce((searchTerm) => { this.store.search(searchTerm); }, 250); const title = (