({ label, isActive, onClick }: TabProps)
| 14 | } |
| 15 | |
| 16 | const Tab = ({ label, isActive, onClick }: TabProps) => { |
| 17 | return ( |
| 18 | <div |
| 19 | className={` |
| 20 | ${ |
| 21 | isActive |
| 22 | ? 'border-b-[3px] border-red-500 pb-2 font-semibold ' |
| 23 | : 'cursor-pointer hover:bg-transparent' |
| 24 | } |
| 25 | text-decoration-none mx-2 justify-start rounded-t-md px-2 py-2 text-sm font-medium |
| 26 | `} |
| 27 | onClick={onClick} |
| 28 | > |
| 29 | {label} |
| 30 | </div> |
| 31 | ) |
| 32 | } |
| 33 | |
| 34 | type TabsProps = { |
| 35 | tabs: Tab[] |
nothing calls this directly
no outgoing calls
no test coverage detected