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

Function SidebarSectionHeader

ui/src/components/SidebarSectionHeader.tsx:14–30  ·  view source on GitHub ↗
({
  children,
  trailing,
}: {
  children: ReactNode
  /** Optional right-aligned slot (e.g. a count). */
  trailing?: ReactNode
})

Source from the content-addressed store, hash-verified

12 * collapses them to one source of truth.
13 */
14export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected