From f1043734438c8518a302f698d9ae6583a75f0c14 Mon Sep 17 00:00:00 2001 From: cashmere Date: Sun, 16 Aug 2026 06:16:56 +0200 Subject: feat: add transitions, track mixing, and voiceover controls --- .../src/timeline/components/timeline-toolbar.tsx | 27 ++-------------------- 1 file changed, 2 insertions(+), 25 deletions(-) (limited to 'apps/web/src/timeline/components/timeline-toolbar.tsx') diff --git a/apps/web/src/timeline/components/timeline-toolbar.tsx b/apps/web/src/timeline/components/timeline-toolbar.tsx index 47906931..ba9a99fa 100644 --- a/apps/web/src/timeline/components/timeline-toolbar.tsx +++ b/apps/web/src/timeline/components/timeline-toolbar.tsx @@ -43,17 +43,13 @@ import { Layers01Icon, Chart03Icon, Unlink02Icon, - MicIcon, - StopIcon, } from "@hugeicons/core-free-icons"; import { HugeiconsIcon } from "@hugeicons/react"; import { OcRippleIcon } from "@/components/icons"; import { GraphEditorPopover } from "./graph-editor/popover"; import { PopoverTrigger } from "@/components/ui/popover"; import { useGraphEditorController } from "./graph-editor/use-controller"; -import { formatElapsedSeconds } from "@/voiceover/recorder"; -import { useRecordingElapsedSeconds } from "@/voiceover/use-recording-elapsed"; -import { useVoiceOverStore } from "@/voiceover/voiceover-store"; +import { VoiceOverRecorderPopover } from "@/voiceover/voiceover-popover"; export function TimelineToolbar({ zoomLevel, @@ -100,10 +96,6 @@ function ToolbarLeftSection() { const isCurrentlyBookmarked = useEditor((e) => e.scenes.isBookmarked({ time: e.playback.getCurrentTime() }), ); - const isRecordingVoiceOver = useVoiceOverStore( - (state) => state.status === "recording", - ); - const voiceOverElapsedSeconds = useRecordingElapsedSeconds(); const canFreezeFrame = useEditor((e) => { const time = e.playback.getCurrentTime(); const { overlay, main } = e.scenes.getActiveScene().tracks; @@ -211,22 +203,7 @@ function ToolbarLeftSection() { onClick={({ event }) => handleAction({ action: "freeze-frame", event })} /> - - } - tooltip={ - isRecordingVoiceOver ? "Stop voice-over" : "Record voice-over" - } - isActive={isRecordingVoiceOver} - onClick={({ event }) => handleAction({ action: "voice-over", event })} - /> - - {isRecordingVoiceOver && ( - - {formatElapsedSeconds({ seconds: voiceOverElapsedSeconds })} - - )} + } -- cgit v1.3.1