19 lines
401 B
React
19 lines
401 B
React
|
|
import { Input } from "antd";
|
||
|
|
import "./main.scss";
|
||
|
|
|
||
|
|
export const Search = ({ placeholder, onSearch, onSearchChange, prefix, value }) => (
|
||
|
|
|
||
|
|
<Input.Search
|
||
|
|
className="searchDiv"
|
||
|
|
spellCheck={false}
|
||
|
|
placeholder={placeholder}
|
||
|
|
onSearch={onSearch}
|
||
|
|
onChange={onSearchChange}
|
||
|
|
prefix={prefix}
|
||
|
|
value={value && value}
|
||
|
|
/>
|
||
|
|
|
||
|
|
);
|
||
|
|
export default Search;
|
||
|
|
|