@mcp-shark/mcp-shark
Version:
Aggregate multiple Model Context Protocol (MCP) servers into a single unified interface with a powerful monitoring UI. Prov deep visibility into every request and response.
28 lines (25 loc) • 786 B
JSX
import { colors, fonts } from '../../theme';
import CollapsibleSection from '../CollapsibleSection';
export default function BodySection({ body, title, titleColor }) {
if (!body) return null;
return (
<CollapsibleSection title={title || 'Body'} titleColor={titleColor}>
<pre
style={{
background: colors.bgSecondary,
padding: '16px',
borderRadius: '8px',
overflow: 'auto',
fontSize: '12px',
fontFamily: fonts.mono,
maxHeight: '400px',
border: `1px solid ${colors.borderLight}`,
color: colors.textPrimary,
lineHeight: '1.5',
}}
>
{typeof body === 'object' ? JSON.stringify(body, null, 2) : body}
</pre>
</CollapsibleSection>
);
}