()
| 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()]; |
no outgoing calls
no test coverage detected