13 lines
514 B
TypeScript
13 lines
514 B
TypeScript
import { getPartnerNavKind } from '../lib/partnerAccess';
|
|
import { usePartnerSession } from '../contexts/PartnerSessionContext';
|
|
import CenterPage from './CenterPage';
|
|
|
|
/** 子账号个人中心:复用精简版 Center 布局 */
|
|
export default function PartnerMePage() {
|
|
const { account } = usePartnerSession();
|
|
const navKind = getPartnerNavKind(account);
|
|
const isWarehouse = navKind === 'warehouse_staff';
|
|
|
|
return <CenterPage variant="sub" roleLabel={isWarehouse ? '仓库管理员' : '拓店员'} />;
|
|
}
|