UNPKG

@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.

29 lines (25 loc) 761 B
import { colors, fonts } from '../../theme'; import CollapsibleSection from '../CollapsibleSection'; import { getInfo } from '../../utils/requestUtils'; export default function InfoSection({ data, titleColor }) { if (!data) return null; const info = getInfo(data); return ( <CollapsibleSection title="Info" titleColor={titleColor} defaultExpanded={false}> <div style={{ background: colors.bgSecondary, padding: '12px 16px', borderRadius: '6px', border: `1px solid ${colors.borderLight}`, fontFamily: fonts.mono, fontSize: '12px', color: titleColor, wordBreak: 'break-word', }} > {info} </div> </CollapsibleSection> ); }