"use client"; import { timelineTimeToSnappedPixels } from "@/lib/timeline"; 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 = timelineTimeToSnappedPixels({ time, zoomLevel }); if (showLabel) { const label = formatRulerLabel({ timeInSeconds: time, fps }); return ( {label} ); } return (
); }