import { Modal } from '@/components/Modal'; import { Stack, Group, Text, Alert, rem } from '@mantine/core'; import { Info } from 'lucide-react'; import type { ModelAnalysis } from '@/types'; interface ModelAnalysisModalProps { opened: boolean; onClose: () => void; analysis: ModelAnalysis | null; loading?: boolean; error?: string; } interface InfoRowProps { label: string; value?: string | number; } const InfoRow = ({ label, value }: InfoRowProps) => { if (!value) return null; return ( {label}: {value} ); }; export const ModelAnalysisModal = ({ opened, onClose, analysis, loading = false, error, }: ModelAnalysisModalProps) => ( Model Analysis } showCloseButton > {loading && ( Analyzing model... )} {error && ( {error} )} {analysis && ( {analysis.general.name && ( )} {analysis.general.parameterCount && ( )} {analysis.architecture.expertCount && ( )} {analysis.context.maxContextLength && ( )} {analysis.architecture.layers && ( )} {!analysis.architecture.layers && ( )} )} );