diff options
| author | Maze Winther <mazewinther@gmail.com> | 2025-07-17 13:38:16 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2025-07-17 13:38:16 +0200 |
| commit | e577c9659f38eb9702f0c85a6bdcbc52d2720f2f (patch) | |
| tree | 569f0314338f20c3bcfe11113bfcb6f274839d40 /apps/web/src/components/editor/timeline/track-icon.tsx | |
| parent | 8efc696dcddc94b1c248a099207ad97c932a545b (diff) | |
| parent | b1efc90157c87e93de422c900de74a3538040eed (diff) | |
| download | opencut-e577c9659f38eb9702f0c85a6bdcbc52d2720f2f.tar.gz | |
Merge branch 'staging' of https://github.com/mazeincoding/AppCut into staging
Diffstat (limited to 'apps/web/src/components/editor/timeline/track-icon.tsx')
| -rw-r--r-- | apps/web/src/components/editor/timeline/track-icon.tsx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/apps/web/src/components/editor/timeline/track-icon.tsx b/apps/web/src/components/editor/timeline/track-icon.tsx new file mode 100644 index 00000000..609c2849 --- /dev/null +++ b/apps/web/src/components/editor/timeline/track-icon.tsx @@ -0,0 +1,18 @@ +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" /> + )} + </> + ); +} |
