import type { SpeechHighlightPart } from '@/lib/speechHighlight'
/**
* C154 — renders a speech text split into highlighted/normal parts (the card
* excerpt and the detail transcript share the same marking).
*/
export const SpeechHighlightParts = ({ parts }: { parts: readonly SpeechHighlightPart[] }) => (
<>
{parts.map((part, index) =>
part.highlighted ? (
{part.text}
) : (
{part.text}
),
)}
>
)