"use client"; import type { FrameRate } from "opencut-wasm"; import { timelineTimeToSnappedPixels } from "@/timeline"; import { formatRulerLabel } from "@/timeline/ruler-utils"; interface TimelineTickProps { time: number; timeInSeconds: number; zoomLevel: number; fps: FrameRate; showLabel: boolean; } export function TimelineTick({ time, timeInSeconds, zoomLevel, fps, showLabel, }: TimelineTickProps) { const leftPosition = timelineTimeToSnappedPixels({ time, zoomLevel }); if (showLabel) { const label = formatRulerLabel({ timeInSeconds, fps }); return ( {label} ); } return (
); }