SceneCssMobile.js 634 Bytes
import React from 'react';
import { connect } from 'dva';
import SceneCssMobileComponent from '../../../mobile/common/SceneCssMobile';

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

  const sceneMobileProps = {
    app,
    content,
    dispatch,
    sModelType,
    sModelsId,
    onRemovePane: removePane,
  };
  return (
    <SceneCssMobileComponent {...sceneMobileProps} />
  );
}

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