({
children,
index,
className = "",
}: {
children: React.ReactNode;
index?: string | number;
className?: string;
})
| 2 | // optionally prefixed with an index (`01 / …`). Used to head every section so |
| 3 | // the page reads as a structured terminal document. (design system §01 / §06) |
| 4 | export function SectionLabel({ |
| 5 | children, |
| 6 | index, |
| 7 | className = "", |
| 8 | }: { |
| 9 | children: React.ReactNode; |
| 10 | index?: string | number; |
| 11 | className?: string; |
| 12 | }) { |
| 13 | return ( |
| 14 | <div className={`flex items-center gap-2.5 ${className}`}> |
| 15 | <span className="inline-block h-0.5 w-4 bg-helm-accent" aria-hidden="true" /> |
| 16 | <span className="font-mono text-[11px] uppercase tracking-[0.25em] text-helm-faint"> |
| 17 | {index != null && <span className="text-helm-faint">{index} / </span>} |
| 18 | {children} |
| 19 | </span> |
| 20 | </div> |
| 21 | ); |
| 22 | } |
nothing calls this directly
no outgoing calls
no test coverage detected