({ focus, tabs, children = null })
| 14 | }; |
| 15 | |
| 16 | export const TabList = ({ focus, tabs, children = null }) => { |
| 17 | let tabsLabel = tabs.map((tab, i) => ( |
| 18 | <Tab {...tab} key={i} focus={i === focus} /> |
| 19 | )); |
| 20 | return ( |
| 21 | <div className={styles.tabs}> |
| 22 | {tabsLabel} |
| 23 | {children} |
| 24 | </div> |
| 25 | ); |
| 26 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected