({ tag, label }: { tag?: string; label?: string })
| 113 | } |
| 114 | |
| 115 | function 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 | |
| 139 | function CodePanel({ |
| 140 | children, |
nothing calls this directly
no outgoing calls
no test coverage detected