
import React from 'react';
import {Popover , Menu} from 'antd';
import Search from '../Component/Search';
import Sort from '../Component/Sort';

import Item from './Team-item';

export default (()=>{
  // 搜索
  function onSearch(value){

  }
  const menu = (
    <Menu>
      <Menu.Item key="updated_on">更新时间排序</Menu.Item>
      <Menu.Item key="created_on">项目数排序</Menu.Item>
    </Menu>
  )
  return(
    <div>
      <div className="headerbox">
        <div>
          <Search placeholder="请输入项目名称关键字进行搜索" onSearch={onSearch}/>
        </div>
        <p>
          <a><i className="iconfont icon-xinjian1 mr3 font-14"></i>新建组织</a>
          <Sort menu={menu}>
            <a>排序<i className="iconfont icon-sanjiaoxing-down ml3 font-14"></i></a>
          </Sort>
        </p>
      </div>
      <div className="contentBox">
        <Item></Item>
      </div>
    </div>
  )
})