import React from 'react'; import { ScrollView, Text, View } from 'react-native'; import { toolWidgetStyles } from './toolWidgetStyles'; /** * RN-safe stand-in for the web's syntax-highlighted
blocks. Nested
* ScrollViews (same pattern as the timeline's ToolDetailBox) keep long code
* reachable without breaking the outer chat scroll.
*/
export function CodeBlock({ code, variant = 'default' }: { code: string; variant?: 'default' | 'error' }) {
const isError = variant === 'error';
return (
{code}
);
}