chore: preserve frontend concept lab

This commit is contained in:
hailin
2026-07-14 13:39:36 +08:00
parent f46369883e
commit 13b0768dfd
33 changed files with 1987 additions and 192 deletions

View File

@@ -0,0 +1,14 @@
import { Badge } from '@/components/ui/badge'
import type { McpTool } from '@/features/prototype/types'
const riskConfig = {
low: { label: '低风险', variant: 'success' },
medium: { label: '中风险', variant: 'warning' },
high: { label: '高风险', variant: 'danger' }
} as const
export function AppRiskBadge({ risk }: { risk: McpTool['risk_level'] }) {
const config = riskConfig[risk]
return <Badge variant={config.variant}>{config.label}</Badge>
}