- {segments.length ? (
- segments.map((s, i) => {
- const active = i === activeSeg && isActive;
- const canClickToSeek = !!onSeek || showAudioPlayer;
- return (
-
seekTo(s) : undefined}
- className={`group rounded-md px-2 py-1 ${active ? "bg-blue-50" : "hover:bg-gray-50"} ${canClickToSeek ? 'cursor-pointer' : ''}`}
- >
- {/* Timestamp and transcript on the same line, align start */}
-
-
- }
- >
- {formatTime(s.startSec + chunkOffsetStart)}
-
-
- {active && (
-
- {t`Now`}
-
- )}
-
-
-
{s.text}
-
-
- );
- })
- ) : (
-
- {chunk.transcript?.trim()?.length
- ? chunk.transcript
- : t`No content`}
-
- )}
-
- )}
-
- {rawTranscript && (
-