({ text }: { text: string })
| 292 | } |
| 293 | |
| 294 | export function AssistantMessage({ text }: { text: string }): React.ReactElement { |
| 295 | const segments = parseSegments(text); |
| 296 | return ( |
| 297 | <Box flexDirection="column" marginY={1}> |
| 298 | {segments.map((seg, i) => |
| 299 | seg.kind === 'code' ? ( |
| 300 | <CodeBlock key={i} lang={seg.lang} body={seg.body} incomplete={seg.incomplete} /> |
| 301 | ) : ( |
| 302 | <Box key={i} flexDirection="column"> |
| 303 | {seg.body.split('\n').map((ln, j) => ( |
| 304 | <ProseLine key={j} line={ln} /> |
| 305 | ))} |
| 306 | </Box> |
| 307 | ), |
| 308 | )} |
| 309 | </Box> |
| 310 | ); |
| 311 | } |
nothing calls this directly
no test coverage detected