mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-09-22 06:32:48 +02:00
25 lines
657 B
JavaScript
25 lines
657 B
JavaScript
import PropTypes from 'prop-types';
|
|
import React from 'react';
|
|
import Icon from './Icon';
|
|
|
|
/* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */
|
|
function ToggleMapTracking(props) {
|
|
return (
|
|
<div
|
|
className="toggle-positioning-container"
|
|
onClick={props.handleClick}
|
|
role="button"
|
|
tabIndex={0}
|
|
>
|
|
<Icon img={props.img} className={props.className} color="#ff0000" />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
ToggleMapTracking.propTypes = {
|
|
handleClick: PropTypes.func.isRequired,
|
|
className: PropTypes.string.isRequired,
|
|
img: PropTypes.string.isRequired,
|
|
};
|
|
|
|
export default ToggleMapTracking;
|