8 lines
476 B
TypeScript
8 lines
476 B
TypeScript
|
import React from 'react';
|
||
|
import type { CollapsePanelProps, CollapseProps, ItemType } from '../interface';
|
||
|
type Props = Pick<CollapsePanelProps, 'prefixCls' | 'onItemClick' | 'openMotion' | 'expandIcon'> & Pick<CollapseProps, 'accordion' | 'collapsible' | 'destroyInactivePanel'> & {
|
||
|
activeKey: React.Key[];
|
||
|
};
|
||
|
declare function useItems(items?: ItemType[], rawChildren?: React.ReactNode, props?: Props): React.ReactElement<CollapsePanelProps>[];
|
||
|
export default useItems;
|