MCPcopy Create free account
hub / github.com/Roy3838/Observer / ModelRow

Function ModelRow

app/src/components/ModelCard/ModelRow.tsx:23–51  ·  view source on GitHub ↗
({
  icon, name, tag, meta, action, progressPct, dimmed, settingsSlot, detailSlot,
})

Source from the content-addressed store, hash-verified

21}
22
23export const ModelRow: React.FC<ModelRowProps> = ({
24 icon, name, tag, meta, action, progressPct, dimmed, settingsSlot, detailSlot,
25}) => (
26 <div className={dimmed ? 'opacity-50' : undefined}>
27 <div className="flex items-center gap-3 py-2.5">
28 <div className="w-8 h-8 rounded-lg bg-gray-100 text-gray-500 flex items-center justify-center flex-shrink-0">
29 {icon}
30 </div>
31 <div className="flex-1 min-w-0">
32 <div className="flex items-baseline gap-1.5">
33 <span className="text-sm font-medium text-gray-900 truncate">{name}</span>
34 {tag && <span className="text-[11px] text-gray-400 flex-shrink-0">{tag}</span>}
35 </div>
36 {meta && <div className="text-xs text-gray-400 mt-0.5 truncate">{meta}</div>}
37 {progressPct != null && (
38 <div className="w-full max-w-[220px] bg-gray-100 rounded-full h-1 mt-1.5">
39 <div
40 className="h-1 rounded-full bg-gray-800 transition-all duration-300"
41 style={{ width: `${Math.max(0, Math.min(100, progressPct))}%` }}
42 />
43 </div>
44 )}
45 </div>
46 <div className="flex items-center gap-1 flex-shrink-0">{action}</div>
47 </div>
48 {detailSlot}
49 {settingsSlot}
50 </div>
51);
52
53// ── Small shared action-button styles, so every row's buttons feel like one system ──
54// (the `data-*` index signature lets onboarding tutorials tag specific buttons for a

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected