import { Fragment } from "react";
import { Plus } from "lucide-react";
import {
ContextMenu,
ContextMenuContent,
ContextMenuItem,
ContextMenuTrigger,
} from "../../ui/context-menu";
import { useTimelineStore } from "@/stores/timeline-store";
import { TimelineTrackContent } from "../timeline-track";
import { TrackIcon } from "./track-icon";
import { getTrackHeight } from "@/constants/timeline-constants";
import type { TimelineTrack } from "@/types/timeline";
import type { SnapPoint } from "@/hooks/use-timeline-snapping";
export interface TimelineTracksAreaProps {
tracks: TimelineTrack[];
zoomLevel: number;
handleSnapPointChange: (snapPoint: SnapPoint | null) => void;
clearSelectedElements: () => void;
}
export function TimelineTracksArea({
tracks,
zoomLevel,
handleSnapPointChange,
clearSelectedElements,
}: TimelineTracksAreaProps) {
const { addTrack, toggleTrackMute } = useTimelineStore();
return (
<>
{/* Track Rows */}
{tracks.map((track, index) => (