mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 05:18:34 +03:00
18 lines
406 B
JavaScript
18 lines
406 B
JavaScript
import React from 'react';
|
|
|
|
const CardNarrativeLink = ({ event, makeTimelabel, select }) => {
|
|
if (event !== null) {
|
|
const timelabel = makeTimelabel(event.timestamp);
|
|
|
|
return (
|
|
<a onClick={() => select(event)}>
|
|
<small>{`${timelabel} / ${event.location}`}</small>
|
|
</a>
|
|
);
|
|
}
|
|
|
|
return (<a className="disabled"><small>None</small></a>);
|
|
}
|
|
|
|
export default CardNarrativeLink;
|