({name, ...props})
| 66 | } |
| 67 | |
| 68 | export function TabLink({name, ...props}) { |
| 69 | let onFileClick = useContext(FileTabsContext); |
| 70 | if (!onFileClick) { |
| 71 | return <span {...props} />; |
| 72 | } |
| 73 | |
| 74 | return ( |
| 75 | <CodeLink |
| 76 | {...props} |
| 77 | onPress={() => { |
| 78 | onFileClick(name); |
| 79 | }} |
| 80 | /> |
| 81 | ); |
| 82 | } |
nothing calls this directly
no test coverage detected