@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.
20 lines (18 loc) • 465 B
JavaScript
import { colors } from '../../theme';
export function getRiskLevelColor(riskLevel) {
if (!riskLevel) return colors.textTertiary;
switch (riskLevel.toLowerCase()) {
case 'none':
return colors.accentGreen;
case 'low':
return colors.accentBlue;
case 'medium':
return colors.accentOrange;
case 'high':
return colors.error;
case 'critical':
return colors.error;
default:
return colors.textTertiary;
}
}