.dumi/theme/builtins/ImagePreview/index.tsx
Function ImagePreview
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ImagePreview: React.FC<React.PropsWithChildren<ImagePreviewProps>> = (props) => {
const { children, className: rootClassName, pure } = props;
const imgs = toArray(children).filter((ele) => ele.type === 'img');
const imgsMeta = imgs.map<Partial<MateType>>((img) => {