({ focus, label, onClick, ...props })
| 2 | import React from "react"; |
| 3 | |
| 4 | const Tab = ({ focus, label, onClick, ...props }) => { |
| 5 | return ( |
| 6 | <button |
| 7 | className={focus ? styles.tabSelected : styles.tab} |
| 8 | onClick={onClick} |
| 9 | {...props} |
| 10 | > |
| 11 | {label} |
| 12 | </button> |
| 13 | ); |
| 14 | }; |
| 15 | |
| 16 | export const TabList = ({ focus, tabs, children = null }) => { |
| 17 | let tabsLabel = tabs.map((tab, i) => ( |
nothing calls this directly
no outgoing calls
no test coverage detected