|
import React from "react";
|
|
import "./Event.css";
|
|
|
|
function Event(props) {
|
|
|
|
return (
|
|
<div className="eventDiv">
|
|
{props.screenshots ? <img className="eventPic" src={props.screenshots[0].url}></img> : JSON.stringify(props)}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default Event;
|