import {Dropdown,Space} from 'antd';
import { DownOutlined } from '@ant-design/icons';
const DropDownCom=(props)=>{
  const {items,defaultText=""}=props
  return (
    <div>
      <Dropdown menu={{
        items,
      }}>
      <a onClick={(e) => e.preventDefault()}>
        <Space>
          {defaultText}
          <DownOutlined />
        </Space>
      </a>
    </Dropdown>
    </div>
  )
}

export default DropDownCom;