diff --git a/apps/web/src/components/editor/timeline.tsx b/apps/web/src/components/editor/timeline.tsx index 3c8315d..bec5ec0 100644 --- a/apps/web/src/components/editor/timeline.tsx +++ b/apps/web/src/components/editor/timeline.tsx @@ -10,10 +10,11 @@ import { Snowflake, Copy, SplitSquareHorizontal, - Volume2, - VolumeX, Pause, Play, + Video, + Music, + TypeIcon, } from "lucide-react"; import { Tooltip, @@ -25,7 +26,6 @@ import { ContextMenu, ContextMenuContent, ContextMenuItem, - ContextMenuSeparator, ContextMenuTrigger, } from "../ui/context-menu"; import { useTimelineStore } from "@/stores/timeline-store"; @@ -44,9 +44,8 @@ import { SelectValue, } from "../ui/select"; import { TimelineTrackContent } from "./timeline-track"; -import type { DragData } from "@/types/timeline"; +import type { DragData, TimelineTrack } from "@/types/timeline"; import { - getTrackLabelColor, getTrackHeight, getCumulativeHeightBefore, getTotalTracksHeight, @@ -1008,12 +1007,7 @@ export function Timeline() { style={{ height: `${getTrackHeight(track.type)}px` }} >
-
- - {track.name} - +
{track.muted && ( @@ -1100,3 +1094,19 @@ export function Timeline() {
); } + +function TrackIcon({ track }: { track: TimelineTrack }) { + return ( + <> + {track.type === "media" && ( +