({ title, description, right, live }: PageHeaderProps)
| 13 | } |
| 14 | |
| 15 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected