mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
17 lines
474 B
TypeScript
17 lines
474 B
TypeScript
import type * as React from 'react';
|
|
import type { TabPaneProps as RcTabPaneProps } from '@rc-component/tabs/lib/TabPanelList/TabPane';
|
|
|
|
import type { CompatibilityProps } from '.';
|
|
|
|
type TabPaneProps = CompatibilityProps & Omit<RcTabPaneProps, 'destroyInactiveTabPane'>;
|
|
|
|
const TabPane: React.FC<TabPaneProps> = () => null;
|
|
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
TabPane.displayName = 'DeprecatedTabPane';
|
|
}
|
|
|
|
export type { TabPaneProps };
|
|
|
|
export default TabPane;
|