({
children,
trailing,
}: {
children: ReactNode
/** Optional right-aligned slot (e.g. a count). */
trailing?: ReactNode
})
| 12 | * collapses them to one source of truth. |
| 13 | */ |
| 14 | export function SidebarSectionHeader({ |
| 15 | children, |
| 16 | trailing, |
| 17 | }: { |
| 18 | children: ReactNode |
| 19 | /** Optional right-aligned slot (e.g. a count). */ |
| 20 | trailing?: ReactNode |
| 21 | }) { |
| 22 | return ( |
| 23 | <div className="flex items-center gap-1.5 px-3 mt-2 mb-1 select-none"> |
| 24 | <h3 className="flex-1 text-[10px] font-medium uppercase tracking-wider text-text-muted/60 truncate"> |
| 25 | {children} |
| 26 | </h3> |
| 27 | {trailing} |
| 28 | </div> |
| 29 | ) |
| 30 | } |
nothing calls this directly
no outgoing calls
no test coverage detected