MCPcopy
hub / github.com/CapSoftware/Cap / selectedCaptionIndex

Function selectedCaptionIndex

apps/desktop/src/routes/editor/CaptionsTab.tsx:248–252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

246 useEditorContext();
247
248 const selectedCaptionIndex = () =>
249 editorState.timeline.selection?.type === "caption" &&
250 editorState.timeline.selection.indices.length === 1
251 ? editorState.timeline.selection.indices[0]
252 : -1;
253
254 const selectedCaptionSegment = () =>
255 project.timeline?.captionSegments?.[selectedCaptionIndex()];

Callers 3

CaptionOverlayFunction · 0.85
selectedCaptionSegmentFunction · 0.85
updateSelectedCaptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected