import React from 'react';
import PropTypes from 'prop-types';

import FontAwesome from 'react-fontawesome';

const ExpandPaneIcon = ({ paneExpander }) => (
  <button onClick={paneExpander} className="pull-right">
    <FontAwesome
      className="full-screen-button"
      name="arrows-alt"
    />
  </button>
);

ExpandPaneIcon.propTypes = {
  paneExpander: PropTypes.func.isRequired,
};

export default ExpandPaneIcon;
