(props: TabPanelProps)
| 570 | ); |
| 571 | |
| 572 | export function TabPanel(props: TabPanelProps): ReactNode | null { |
| 573 | let {showTabs} = useContext(CollapseContext); |
| 574 | let {selectedKey} = useContext(InternalTabsContext); |
| 575 | if (showTabs) { |
| 576 | return ( |
| 577 | <AriaTabPanel |
| 578 | {...props} |
| 579 | style={props.UNSAFE_style} |
| 580 | className={renderProps => |
| 581 | (props.UNSAFE_className ?? '') + tabPanel(renderProps, props.styles) |
| 582 | } |
| 583 | /> |
| 584 | ); |
| 585 | } |
| 586 | |
| 587 | if (props.id !== selectedKey) { |
| 588 | return null; |
| 589 | } |
| 590 | |
| 591 | return <CollapsedTabPanel {...props} />; |
| 592 | } |
| 593 | |
| 594 | function CollapsedTabPanel(props: TabPanelProps) { |
| 595 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
nothing calls this directly
no outgoing calls
no test coverage detected