MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / CodePanelHeader

Function CodePanelHeader

apps/baseai.dev/src/components/Code.tsx:115–137  ·  view source on GitHub ↗
({ tag, label }: { tag?: string; label?: string })

Source from the content-addressed store, hash-verified

113}
114
115function CodePanelHeader({ tag, label }: { tag?: string; label?: string }) {
116 if (!tag && !label) {
117 return null;
118 }
119
120 return (
121 <div className="flex h-9 items-center gap-2 bg-background px-4 py-6">
122 {tag && (
123 <div className="flex">
124 <Tag variant="small">{tag}</Tag>
125 </div>
126 )}
127 {tag && label && (
128 <span className="h-0.5 w-0.5 rounded-full bg-zinc-500" />
129 )}
130 {label && (
131 <span className="font-mono text-xs text-zinc-900 dark:text-zinc-400">
132 {label}
133 </span>
134 )}
135 </div>
136 );
137}
138
139function CodePanel({
140 children,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected