({ active, onClick, icon, label }: { active: boolean; onClick: () => void; icon: React.ReactNode; label: string })
| 313 | // --- Helper Components for Visual Cleanliness --- |
| 314 | |
| 315 | const TabButton = ({ active, onClick, icon, label }: { active: boolean; onClick: () => void; icon: React.ReactNode; label: string }) => ( |
| 316 | <button |
| 317 | onClick={onClick} |
| 318 | className={`flex items-center gap-2 px-4 py-2 text-xs font-medium transition-all rounded-t-md border-t border-x -mb-px relative top-px ${ |
| 319 | active |
| 320 | ? 'bg-white border-neutral-200 text-neutral-900 shadow-[0_-2px_6px_rgba(0,0,0,0.02)] z-10' |
| 321 | : 'bg-transparent border-transparent text-neutral-500 hover:text-neutral-700 hover:bg-neutral-200/50' |
| 322 | }`} |
| 323 | > |
| 324 | {icon} |
| 325 | <span>{label}</span> |
| 326 | </button> |
| 327 | ); |
| 328 | |
| 329 | const CodeLine = ({ num, children, isModified }: { num: number; children?: React.ReactNode; isModified?: boolean }) => ( |
| 330 | <div className={`flex gap-4 px-4 hover:bg-neutral-50/80 transition-colors ${isModified ? 'text-neutral-900' : ''}`}> |
nothing calls this directly
no outgoing calls
no test coverage detected