UNPKG

476 BTypeScriptView Raw
1import React from 'react';
2import type { CollapsePanelProps, CollapseProps, ItemType } from '../interface';
3type Props = Pick<CollapsePanelProps, 'prefixCls' | 'onItemClick' | 'openMotion' | 'expandIcon'> & Pick<CollapseProps, 'accordion' | 'collapsible' | 'destroyInactivePanel'> & {
4 activeKey: React.Key[];
5};
6declare function useItems(items?: ItemType[], rawChildren?: React.ReactNode, props?: Props): React.ReactElement<CollapsePanelProps>[];
7export default useItems;