import { cn } from "@/lib/utils" import { getCutType } from "../../types/jl-cuts" import type { TimelineClip } from "../../types/timeline" interface JLCutIndicatorProps { videoClip: TimelineClip audioClip: TimelineClip pixelsPerSecond: number className?: string } export function JLCutIndicator({ _videoClip, audioClip, pixelsPerSecond, className }: JLCutIndicatorProps) { const audioOffset = audioClip.audioOffset || 0 if (audioOffset === 0) return null const cutType = getCutType(audioOffset) const offsetPixels = Math.abs(audioOffset) * pixelsPerSecond // Для J-Cut аудио начинается раньше видео // Для L-Cut аудио заканчивается позже видео const isJCut = cutType === "j-cut" return (
{/* Визуальный индикатор типа cut */}
{isJCut ? "J" : "L"}
{/* Линия связи между клипами */}
) }