MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / PageHeader

Function PageHeader

ui/src/components/PageHeader.tsx:15–45  ·  view source on GitHub ↗
({ title, description, right, live }: PageHeaderProps)

Source from the content-addressed store, hash-verified

13}
14
15export function PageHeader({ title, description, right, live }: PageHeaderProps) {
16 return (
17 <div className="shrink-0 border-b border-border">
18 <div className="px-4 md:px-6 py-5 flex items-center justify-between gap-4">
19 <div className="min-w-0">
20 <div className="flex items-center gap-2">
21 <h2 className="text-title font-bold text-text truncate">{title}</h2>
22 {live && (
23 <span
24 className="relative inline-block w-1.5 h-1.5 rounded-full bg-green live-pulse shrink-0"
25 aria-label="Live"
26 />
27 )}
28 </div>
29 {(description || live) && (
30 <div className="mt-0.5 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-[12px] text-text-muted">
31 {description && <span className="min-w-0">{description}</span>}
32 {live && (
33 <>
34 {description && <span className="text-text-muted/40">·</span>}
35 <LiveIndicator lastUpdated={live.lastUpdated} hideDot />
36 </>
37 )}
38 </div>
39 )}
40 </div>
41 {right && <div className="shrink-0">{right}</div>}
42 </div>
43 </div>
44 )
45}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected