diff --git a/src/components/video-editor/SettingsPanel.tsx b/src/components/video-editor/SettingsPanel.tsx index af66e496..7f0d9b99 100644 --- a/src/components/video-editor/SettingsPanel.tsx +++ b/src/components/video-editor/SettingsPanel.tsx @@ -1,4 +1,4 @@ -import { Palette, Trash2, Upload, X } from "lucide-react"; +import { MessageSquare, Palette, Trash2, Upload, X } from "lucide-react"; import { AnimatePresence, LayoutGroup, motion } from "motion/react"; import { useEffect, useMemo, useRef, useState } from "react"; import { toast } from "sonner"; @@ -205,10 +205,11 @@ interface SettingsPanelProps { onAnnotationFigureDataChange?: (id: string, figureData: FigureData) => void; onAnnotationBlurIntensityChange?: (id: string, blurIntensity: number) => void; onAnnotationDelete?: (id: string) => void; - currentTime?: number; onSeek?: (time: number) => void; autoCaptions?: CaptionCue[]; onAutoCaptionsChange?: (captions: CaptionCue[]) => void; + selectedCaptionId?: string | null; + onSelectCaption?: (id: string | null) => void; autoCaptionSettings?: AutoCaptionSettings; whisperExecutablePath?: string | null; whisperModelPath?: string | null; @@ -528,7 +529,6 @@ export function SettingsPanel({ onAnnotationFigureDataChange, onAnnotationBlurIntensityChange, onAnnotationDelete, - currentTime = 0, onSeek, autoCaptions = [], onAutoCaptionsChange, @@ -544,6 +544,8 @@ export function SettingsPanel({ onClearAutoCaptions, onDownloadWhisperModel, onDeleteWhisperModel, + selectedCaptionId, + onSelectCaption, selectedSpeedId, selectedSpeedValue, onSpeedChange, @@ -1459,7 +1461,6 @@ export function SettingsPanel({ )}