summaryrefslogtreecommitdiff
path: root/apps/web/src/components/editor/timeline/track-icon.tsx
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2025-07-17 19:33:10 +0200
committerMaze Winther <mazewinther@gmail.com>2025-07-17 19:33:10 +0200
commit0b919d4df84ea523ac9e069bdad5c3b34b7c603d (patch)
treead06b3a05fcca88ab117320b602d97dd72553aec /apps/web/src/components/editor/timeline/track-icon.tsx
parent56e6edcc5ab497388bcfad78a60681b99ca5c374 (diff)
downloadopencut-0b919d4df84ea523ac9e069bdad5c3b34b7c603d.tar.gz
refactor all timeline components
Diffstat (limited to 'apps/web/src/components/editor/timeline/track-icon.tsx')
-rw-r--r--apps/web/src/components/editor/timeline/track-icon.tsx26
1 files changed, 13 insertions, 13 deletions
diff --git a/apps/web/src/components/editor/timeline/track-icon.tsx b/apps/web/src/components/editor/timeline/track-icon.tsx
index 609c2849..e250a0d8 100644
--- a/apps/web/src/components/editor/timeline/track-icon.tsx
+++ b/apps/web/src/components/editor/timeline/track-icon.tsx
@@ -2,17 +2,17 @@ import { Video, Music, TypeIcon } from "lucide-react";
import type { TimelineTrack } from "@/types/timeline";
export function TrackIcon({ track }: { track: TimelineTrack }) {
- return (
- <>
- {track.type === "media" && (
- <Video className="w-4 h-4 flex-shrink-0 text-muted-foreground" />
- )}
- {track.type === "text" && (
- <TypeIcon className="w-4 h-4 flex-shrink-0 text-muted-foreground" />
- )}
- {track.type === "audio" && (
- <Music className="w-4 h-4 flex-shrink-0 text-muted-foreground" />
- )}
- </>
- );
+ return (
+ <>
+ {track.type === "media" && (
+ <Video className="w-4 h-4 flex-shrink-0 text-muted-foreground" />
+ )}
+ {track.type === "text" && (
+ <TypeIcon className="w-4 h-4 flex-shrink-0 text-muted-foreground" />
+ )}
+ {track.type === "audio" && (
+ <Music className="w-4 h-4 flex-shrink-0 text-muted-foreground" />
+ )}
+ </>
+ );
}