const Comment = (props) => {
function formatTimestamp(timestamp) {
var options = {
weekday: "long",
year: "numeric",
month: "short",
day: "numeric",
hour: "2-digit",
minute: "2-digit"
}
return timestamp.toLocaleTimeString("en-us", options)
}
return (
<div className="comment">
<p className="commentText">
{props.children}
</p>
<span className="commentAuthor">
- {props.author}
</span>
<span className="commentTimestamp">