
import { connect } from 'umi';
import WorkOrderResearchTableTree from '../../../components/Manufacture/WorkOrderPack/WorkOrderResearchTableTree';

function WorkOrderPackTableTreeComponent({ dispatch, app, content }) {
  function removePane(changePanes, currentPane) {
    dispatch({ type: 'app/removePane', payload: { changePanes, currentPane } });
  }

  const commonBillProps = {
    app,
    content,
    dispatch,
    onRemovePane: removePane,
  };
  return (
    <WorkOrderResearchTableTree {...commonBillProps} />
  );
}

export default connect(({ app, content }) =>
  ({ app, content }))(WorkOrderPackTableTreeComponent);

