mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-11 04:48:36 +03:00
18 lines
401 B
JavaScript
18 lines
401 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
|