/**
 * Created by mar105 on 2019-01-08.
 */
import React from 'react';
import { connect } from 'umi';
import Quotation from '../../../components/QuoQuotation/Quotation/Quotation';

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

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

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

