1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-29 00:27:37 +00:00
Files
seahub/frontend/src/pages/wiki2/wiki-right-header/index.js

23 lines
479 B
JavaScript
Raw Normal View History

2024-07-10 13:40:23 +08:00
import React from 'react';
2024-07-10 16:37:41 +08:00
import PropTypes from 'prop-types';
2024-07-10 13:40:23 +08:00
import PageCover from './page-cover';
import PageTitle from './page-title';
2024-07-10 16:37:41 +08:00
function RightHeader({ currentPageConfig, onUpdatePage }) {
2024-07-10 13:40:23 +08:00
const props = { currentPageConfig, onUpdatePage };
return (
2024-07-10 16:37:41 +08:00
<>
2024-07-10 13:40:23 +08:00
<PageCover {...props} />
<PageTitle {...props} />
2024-07-10 16:37:41 +08:00
</>
2024-07-10 13:40:23 +08:00
);
}
2024-07-10 16:37:41 +08:00
RightHeader.propTypes = {
currentPageConfig: PropTypes.object,
onUpdatePage: PropTypes.func,
};
export default RightHeader;