text: import React from 'react';
  import PropTypes from 'prop-types';
  import Button from '@material-ui/core/Button';
  import { FormattedMessage } from 'react-intl';
  
  function CompileButton(props) {
    const { disabled, onClick } = props;
    return (
      <Button
        disabled={disabled}
        variant="contained"
        color="primary"
        onClick={onClick}
      >
        <FormattedMessage id="btnCompile" />
      </Button>
    );
  }
  
  CompileButton.propTypes = {
    disabled: PropTypes.bool.isRequired,
    onClick: PropTypes.func.isRequired,
  };
  
  export default CompileButton;
  