amis-rpc-design/node_modules/rc-image/lib/hooks/usePreviewItems.d.ts

8 lines
372 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import type { InternalItem, RegisterImage } from '../interface';
import type { GroupConsumerProps } from '../PreviewGroup';
export type Items = Omit<InternalItem, 'canPreview'>[];
/**
* Merge props provided `items` or context collected images
*/
export default function usePreviewItems(items?: GroupConsumerProps['items']): [items: Items, registerImage: RegisterImage];