PromoCursed/node_modules/rc-collapse/es/hooks/useItems.d.ts

8 lines
476 B
TypeScript
Raw Normal View History

2024-08-20 23:25:37 +04:00
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;