43 lines
1.6 KiB
React
43 lines
1.6 KiB
React
/*
|
|
Copyright (C) 2025 QuantumNous
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Affero General Public License as
|
|
published by the Free Software Foundation, either version 3 of the
|
|
License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU Affero General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
For commercial licensing, please contact support@quantumnous.com
|
|
*/
|
|
import React from 'react';
|
|
import UserCenterPageHeader from '../../../components/common/UserCenterPageHeader';
|
|
import OrgBreadcrumb from './OrgBreadcrumb';
|
|
|
|
/**
|
|
* 企业中心统一页面标题区(/org/*):与个人端共用 UserCenterPageHeader 的样式,
|
|
* 面包屑为“分组(或企业中心)/ 当前页面”,标题 28px、副标题 14px。
|
|
*
|
|
* @param {React.ReactNode} title 主标题
|
|
* @param {React.ReactNode} [subtitle] 副标题(一句话说明本页用途)
|
|
* @param {React.ReactNode} [actions] 右侧操作区(刷新/新建等按钮)
|
|
*/
|
|
const OrgPageHeader = ({ title, subtitle, actions }) => (
|
|
<UserCenterPageHeader
|
|
breadcrumb={
|
|
<OrgBreadcrumb current={typeof title === 'string' ? title : undefined} />
|
|
}
|
|
title={title}
|
|
subtitle={subtitle}
|
|
extra={actions}
|
|
/>
|
|
);
|
|
|
|
export default OrgPageHeader;
|