import * as React from 'react'; import { Input } from 'antd'; const Search = Input.Search; interface CatalogoSearchHeaderProps { onChange: (value: string) => void } interface CatalogoSearchHeaderState { searchValue: string } export default class CatalogoSearchHeader extends React.Component { constructor(props) { super(props); this.state = { searchValue: '' } } render() { return ( this.props.onChange(event.target.value)} /> ); } }