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

Function SensorButton

app/src/components/EditAgent/SimpleCreatorModal.tsx:67–72  ·  view source on GitHub ↗
({ icon: Icon, label, colorClass, onClick }: { icon: React.ElementType, label: string, colorClass?: string, onClick: () => void })

Source from the content-addressed store, hash-verified

65
66// --- Sensor Button Helper ---
67const SensorButton = ({ icon: Icon, label, colorClass, onClick }: { icon: React.ElementType, label: string, colorClass?: string, onClick: () => void }) => (
68 <button onClick={onClick} className={`flex items-center space-x-2 px-3 py-2 bg-gray-100 hover:bg-gray-200 rounded-lg transition-colors ${colorClass || 'text-gray-700'}`}>
69 <Icon className="h-5 w-5" />
70 <span className="text-sm font-medium">{label}</span>
71 </button>
72);
73
74// --- NEW: Warning message component for Step 3 ---
75const ToolWarning = ({ icon: Icon, message, colorClass }: { icon: React.ElementType, message: React.ReactNode, colorClass: string }) => (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected