import React from 'react' import PropTypes from 'prop-types' import DocLabel from './DocLabel' import Button from '../Button' import {MdFunctions, MdInsertChart} from 'react-icons/md' export default class FunctionButtons extends React.Component { static propTypes = { fieldSpec: PropTypes.object, onZoomClick: PropTypes.func, onDataClick: PropTypes.func, } render() { let makeZoomButton, makeDataButton if (this.props.fieldSpec.expression.parameters.includes('zoom')) { makeZoomButton = if (this.props.fieldSpec['property-type'] === 'data-driven') { makeDataButton = } return