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

Function SensorButton

app/src/components/AgentCard/SensorModal.tsx:19–24  ·  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

17
18// Sensor Button Helper Component
19const SensorButton = ({ icon: Icon, label, colorClass, onClick }: { icon: React.ElementType, label: string, colorClass?: string, onClick: () => void }) => (
20 <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'}`}>
21 <Icon className="h-5 w-5" />
22 <span className="text-sm font-medium">{label}</span>
23 </button>
24);
25
26// Sensor Dropdown Button Component
27const SensorDropdownButton = ({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected