amis-rpc-design/node_modules/rc-image/lib/hooks/usePreviewItems.d.ts
2023-10-07 19:42:30 +08:00

8 lines
372 B
TypeScript

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];