1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-20 10:00:00 +00:00
seahub/frontend/src/components/main-content-wrapper.js

23 lines
475 B
JavaScript
Raw Normal View History

2018-11-26 09:53:18 +00:00
import React, { Fragment } from 'react';
import GeneralToolBar from './toolbar/general-toolbar';
const MainContentWrapper = (WrapperedComponent) => {
return class Wrapper extends React.Component {
2018-11-26 09:53:18 +00:00
constructor(props) {
super(props);
}
render() {
return (
<Fragment>
<GeneralToolBar {...this.props} />
<WrapperedComponent {...this.props} />
</Fragment>
);
}
};
};
2018-11-26 09:53:18 +00:00
export default MainContentWrapper;