({ children, isActive, onClick })
| 1 | import { useTransition } from 'react'; |
| 2 | |
| 3 | export default function TabButton({ children, isActive, onClick }) { |
| 4 | if (isActive) { |
| 5 | return <b>{children}</b>; |
| 6 | } |
| 7 | return ( |
| 8 | <button |
| 9 | onClick={() => { |
| 10 | onClick(); |
| 11 | }} |
| 12 | > |
| 13 | {children} |
| 14 | </button> |
| 15 | ); |
| 16 | } |
nothing calls this directly
no outgoing calls
no test coverage detected