import type { MessagePart, Permission } from "../types"; import { TextBlock } from "./parts/TextBlock"; import { ReasoningBlock } from "./parts/ReasoningBlock"; import { ToolCall } from "./parts/ToolCall"; interface MessagePartRendererProps { part: MessagePart; workspaceRoot?: string; pendingPermissions?: Map; onPermissionResponse?: (permissionId: string, response: "once" | "always" | "reject") => void; isStreaming?: boolean; } export function MessagePartRenderer(props: MessagePartRendererProps) { switch (props.part.type) { case "text": return ; case "reasoning": return ; case "tool": return ; case "step-start": case "step-finish": return null; default: return null; } }