feat(platform-web): link analysis pages to vehicle service

This commit is contained in:
lingniu
2026-07-04 01:35:15 +08:00
parent 9886fe2481
commit dc3e12328e
5 changed files with 91 additions and 8 deletions

View File

@@ -1,12 +1,16 @@
import { Typography } from '@douyinfe/semi-ui';
import type { ReactNode } from 'react';
export function PageHeader({ title, description }: { title: string; description: string }) {
export function PageHeader({ title, description, actions }: { title: string; description: string; actions?: ReactNode }) {
return (
<div style={{ marginBottom: 16 }}>
<Typography.Title heading={3} style={{ margin: 0 }}>
{title}
</Typography.Title>
<Typography.Text type="tertiary">{description}</Typography.Text>
<div className="vp-page-header">
<div>
<Typography.Title heading={3} style={{ margin: 0 }}>
{title}
</Typography.Title>
<Typography.Text type="tertiary">{description}</Typography.Text>
</div>
{actions ? <div className="vp-page-header-actions">{actions}</div> : null}
</div>
);
}