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

Function SensorButton

app/src/components/EditAgent/EditAgentModal.tsx:91–96  ·  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

89
90// --- NEW HELPER COMPONENT: Sensor Button ---
91const SensorButton = ({ icon: Icon, label, colorClass, onClick }: { icon: React.ElementType, label: string, colorClass?: string, onClick: () => void }) => (
92 <button onClick={onClick} className={`flex-grow md:flex-grow-0 flex items-center justify-center space-x-2 px-3 py-2 bg-gray-100 hover:bg-gray-200 rounded-lg transition-colors ${colorClass || 'text-gray-700'}`}>
93 <Icon className="h-5 w-5" />
94 <span className="text-sm font-medium">{label}</span>
95 </button>
96);
97
98// --- NEW HELPER COMPONENT: Sensor Dropdown Button ---
99const SensorDropdownButton = ({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected