import React from 'react'; import { PropTypes } from 'prop-types'; import getConfig from 'next/config'; import './style.scss'; const { publicRuntimeConfig } = getConfig(); const SearchBar = props => (

Archives

Search { props.isSearchActive && ( ) }
{props.numResults > 0 && props.numResults[0] !== null ?

{ props.numMatchedTerms } search term matches | { props.numResults } interview matches

: ''}
); SearchBar.propTypes = { term: PropTypes.string.isRequired, isSearchActive: PropTypes.bool.isRequired, onSearchInputChange: PropTypes.func.isRequired, clearSearchInput: PropTypes.func.isRequired, numResults: PropTypes.number.isRequired, numMatchedTerms: PropTypes.number.isRequired, }; export default SearchBar;