mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-10 20:38:35 +03:00
17 lines
366 B
JavaScript
17 lines
366 B
JavaScript
import React from 'react'
|
|
|
|
export default ({ isDisabled, direction, onClickHandler }) => {
|
|
return (
|
|
<div
|
|
className={`narrative-adjust ${direction}`}
|
|
onClick={!isDisabled ? onClickHandler : null}
|
|
>
|
|
<i
|
|
className={`material-icons ${isDisabled ? 'disabled' : ''}`}
|
|
>
|
|
{`chevron_${direction}`}
|
|
</i>
|
|
</div>
|
|
)
|
|
}
|