MCPcopy Create free account
hub / github.com/bhancockio/nextjs-crewai-basic-tutorial / EventLog

Function EventLog

nextjs_app/components/EventLog.tsx:10–29  ·  view source on GitHub ↗
({ events })

Source from the content-addressed store, hash-verified

8};
9
10export 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};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected