commonBill.js 560 Bytes
import { connect } from 'umi';
import CommonBillComponent from '@/components/Common/CommonBill';

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

  const commonBillProps = {
    app,
    content,
    dispatch,
    onRemovePane: removePane,
  };

  return (
    <CommonBillComponent {...commonBillProps} style={{ height: '100%' }} />
  );
}

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