import React from 'react'; import ortho from './images/preview-ortho.png'; import vector from './images/preview-vector.png'; import PropTypes from 'prop-types'; const SwitchMapStyle = ({ isVector }) => { const style = isVector ? 'Satellite' : 'Vectoriel'; const source = `${isVector ? ortho : vector}`; const imgStyle = { width: '100%', height: '100%', cursor: 'pointer' }; const textStyle = { position: 'relative', bottom: '26px', left: '4px', color: `${isVector ? '#fff' : '#000'}` }; return (