()
| 128 | * It renders the content of the selected tab. |
| 129 | */ |
| 130 | export function OpenAPITabsPanels() { |
| 131 | const { selectedTab } = useOpenAPITabsContext(); |
| 132 | |
| 133 | if (!selectedTab) { |
| 134 | return null; |
| 135 | } |
| 136 | |
| 137 | const key = selectedTab.key.toString(); |
| 138 | |
| 139 | return ( |
| 140 | <TabPanel id={key} className="openapi-tabs-panel"> |
| 141 | <div className="openapi-panel-body">{selectedTab.body}</div> |
| 142 | {selectedTab.footer ? ( |
| 143 | <div className="openapi-panel-footer">{selectedTab.footer}</div> |
| 144 | ) : null} |
| 145 | </TabPanel> |
| 146 | ); |
| 147 | } |
nothing calls this directly
no test coverage detected