import React from 'react' import { Box, Text } from 'ink' import { getTheme } from '../../utils/theme' import { applyMarkdown } from '../../utils/markdown' import { ThinkingBlock, ThinkingBlockParam, } from '@anthropic-ai/sdk/resources/index.mjs' type Props = { param: ThinkingBlock | ThinkingBlockParam addMargin: boolean } export function AssistantThinkingMessage({ param: { thinking }, addMargin = false, }: Props): React.ReactNode { if (!thinking) { return null } return ( ✻ Thinking… {applyMarkdown(thinking)} ) }