// @flow import React, { PureComponent } from 'react' import styled from 'styled-components' import IconSearch from 'icons/Search' import Box from 'components/base/Box' const Input = styled.input` border: none; background: transparent; outline: none; flex-grow: 1; &::placeholder { color: ${p => p.theme.colors.warmGrey}; } ` class GlobalSearch extends PureComponent<{}> { _input = null focusInput = () => { if (this._input) { this._input.focus() } } render() { return ( (this._input = input)} /> ) } } export default GlobalSearch