({ events })
| 8 | }; |
| 9 | |
| 10 | export const EventLog: React.FC<EventLogProps> = ({ events }) => { |
| 11 | return ( |
| 12 | <div className="flex flex-col h-full"> |
| 13 | <h2 className="text-lg font-semibold mb-2">Event Details</h2> |
| 14 | <div className="flex-grow overflow-auto border-2 border-gray-300 p-2"> |
| 15 | {events.length === 0 ? ( |
| 16 | <p>No events yet.</p> |
| 17 | ) : ( |
| 18 | events.map((event, index) => ( |
| 19 | <div key={index} className="p-2 border-b border-gray-200"> |
| 20 | <p> |
| 21 | {event.timestamp}: {event.data} |
| 22 | </p> |
| 23 | </div> |
| 24 | )) |
| 25 | )} |
| 26 | </div> |
| 27 | </div> |
| 28 | ); |
| 29 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected