import React from 'react' const TimelineZoomControls = ({ extent, zoomLevels, dims, onApplyZoom }) => { function renderZoom (zoom, idx) { const isActive = (zoom.duration === extent) return ( onApplyZoom(zoom)} > {zoom.label} ) } return ( {zoomLevels.map((z, idx) => renderZoom(z, idx))} ) } export default TimelineZoomControls