MCPcopy
hub / github.com/buxuku/SmartSub / PageHeader

Function PageHeader

renderer/components/PageHeader.tsx:8–32  ·  view source on GitHub ↗
({
  title,
  description,
  actions,
  className,
}: {
  title: React.ReactNode;
  description?: React.ReactNode;
  actions?: React.ReactNode;
  className?: string;
})

Source from the content-addressed store, hash-verified

6 * 工作页(任务页/校对编辑器)的「返回 + 上下文标题 + 操作组」模式不使用本组件。
7 */
8export function PageHeader({
9 title,
10 description,
11 actions,
12 className,
13}: {
14 title: React.ReactNode;
15 description?: React.ReactNode;
16 actions?: React.ReactNode;
17 className?: string;
18}) {
19 return (
20 <div className={cn('flex items-start justify-between gap-4', className)}>
21 <div className="space-y-1 min-w-0">
22 <h1 className="text-2xl font-semibold tracking-tight">{title}</h1>
23 {description ? (
24 <p className="text-sm text-muted-foreground">{description}</p>
25 ) : null}
26 </div>
27 {actions ? (
28 <div className="flex flex-shrink-0 items-center gap-2">{actions}</div>
29 ) : null}
30 </div>
31 );
32}
33
34export default PageHeader;

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected