diff --git a/src/containers/Organization/Video/ParaphraseRightPanel.jsx b/src/containers/Organization/Video/ParaphraseRightPanel.jsx index 78fc5149..b53f4b5b 100644 --- a/src/containers/Organization/Video/ParaphraseRightPanel.jsx +++ b/src/containers/Organization/Video/ParaphraseRightPanel.jsx @@ -52,8 +52,9 @@ import { setSubtitles, } from "redux/actions"; import GlossaryDialog from "common/GlossaryDialog"; -import { bookmarkSegment, onExpandTimeline, paraphrase } from "utils/subtitleUtils"; +import { bookmarkSegment, onCopyToParaphrasedSegment, onExpandTimeline, paraphrase } from "utils/subtitleUtils"; import LoopIcon from "@mui/icons-material/Loop"; +import { ArrowForward } from "@mui/icons-material"; const ParaphraseRightPanel = ({ currentIndex, currentSubs,setCurrentIndex, showTimeline, segment }) => { const { taskId } = useParams(); @@ -301,6 +302,11 @@ const ParaphraseRightPanel = ({ currentIndex, currentSubs,setCurrentIndex, showT // eslint-disable-next-line }, [currentIndexToSplitTextBlock, selectionStart, limit, currentOffset]); + const copyToParaphrasedText = useCallback((index) => { + const sub = onCopyToParaphrasedSegment(index); + dispatch(setSubtitles(sub, C.SUBTITLES)); + }, [limit, currentOffset]); + useEffect(() => { setSourceText(subtitles); }, [subtitles]); @@ -808,6 +814,7 @@ const ParaphraseRightPanel = ({ currentIndex, currentSubs,setCurrentIndex, showT type={"endTime"} /> {currentIndex === index && +