import type { Call } from "../model.js"; import { type Axis, interval, position, timestamp } from "./timing.js"; export function TimelineMark({ range, logTime, call }: { range?: Axis; logTime?: string; call?: Call }) { if (!range) return —; const span = call ? interval(call) : undefined; const point = logTime === undefined ? (call?.observedStartedAt ?? call?.observedEndedAt) : timestamp(logTime); if (span && span.end > span.start) return ( ); return point === undefined ? ( — ) : ( ); }