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