mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 21:18:01 +08:00
16 lines
549 B
TypeScript
16 lines
549 B
TypeScript
import * as React from 'react';
|
|
import RcImage from 'rc-image';
|
|
import { GroupConsumerProps } from 'rc-image/lib/PreviewGroup';
|
|
import { ConfigContext } from '../config-provider';
|
|
|
|
const InternalPreviewGroup: React.FC<GroupConsumerProps> = ({
|
|
previewPrefixCls: customizePrefixCls,
|
|
...props
|
|
}) => {
|
|
const { getPrefixCls } = React.useContext(ConfigContext);
|
|
const prefixCls = getPrefixCls('image-preview', customizePrefixCls);
|
|
return <RcImage.PreviewGroup previewPrefixCls={prefixCls} {...props} />;
|
|
};
|
|
|
|
export default InternalPreviewGroup;
|