mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-28 16:17:02 +00:00
23 lines
479 B
JavaScript
23 lines
479 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import PageCover from './page-cover';
|
|
import PageTitle from './page-title';
|
|
|
|
function RightHeader({ currentPageConfig, onUpdatePage }) {
|
|
|
|
const props = { currentPageConfig, onUpdatePage };
|
|
return (
|
|
<>
|
|
<PageCover {...props} />
|
|
<PageTitle {...props} />
|
|
</>
|
|
);
|
|
}
|
|
|
|
RightHeader.propTypes = {
|
|
currentPageConfig: PropTypes.object,
|
|
onUpdatePage: PropTypes.func,
|
|
};
|
|
|
|
export default RightHeader;
|