import React, { FC, useRef, forwardRef, useImperativeHandle } from 'react'; import { CompareImage, Flex, Score } from '@zhst/meta' interface ComBineImageProps { data: { imgSummary: string; compaterImage: string; imageKey: string; score: number; } prevDisable?: boolean; nextDisable?: boolean; onPre?: () => void; onNext?: () => void; openRoll?: boolean } const ComBineImage: FC = forwardRef((props, ref) => { const { data, prevDisable, nextDisable, onNext, onPre, openRoll } = props const { imgSummary, compaterImage, score } = data const targetImageRef = useRef(null) const compareImageRef = useRef(null) useImperativeHandle(ref, () => ({ compareImageRef, targetImageRef })); return ( ) }) export default ComBineImage