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

Function SensorButton

app/src/components/EditAgent/SimpleCreatorModal.tsx:66–71  ·  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

64
65// --- Sensor Button Helper ---
66const SensorButton = ({ icon: Icon, label, colorClass, onClick }: { icon: React.ElementType, label: string, colorClass?: string, onClick: () => void }) => (
67 <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'}`}>
68 <Icon className="h-5 w-5" />
69 <span className="text-sm font-medium">{label}</span>
70 </button>
71);
72
73// --- NEW: Warning message component for Step 3 ---
74const 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