index.js 384 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import React from 'react';
import { Button, Input } from 'antd';

import styles from './index.less';

export default ({ onSearch = () => ({}), text = '搜紒', ...reset }) => (
  <div className={styles.search}>
    <Input
      placeholder="θ―·θΎ“ε…₯"
      size="large"
      {...reset}
      addonAfter={<Button onClick={onSearch} type="primary">{text}</Button>}
    />
  </div>
);