"use client"; import { TIMELINE_CONSTANTS } from "@/constants/timeline-constants"; import { formatRulerLabel } from "@/lib/timeline/ruler-utils"; interface TimelineTickProps { time: number; zoomLevel: number; fps: number; showLabel: boolean; } export function TimelineTick({ time, zoomLevel, fps, showLabel, }: TimelineTickProps) { const leftPosition = time * TIMELINE_CONSTANTS.PIXELS_PER_SECOND * zoomLevel; if (showLabel) { const label = formatRulerLabel({ timeInSeconds: time, fps }); return ( {label} ); } return (
); }