import React from 'react'; import PropTypes from 'prop-types'; function ExpandOrContractButton(props) { const { isWindowExpanded, contractWindow, expandWindow } = props; const clickContractButtonHandler = () => { if (contractWindow != null) { contractWindow(); } }; const clickExpandButtonHandler = () => { if (expandWindow != null) { expandWindow(); } }; return ( ); } ExpandOrContractButton.propTypes = { isWindowExpanded: PropTypes.bool, contractWindow: PropTypes.func, expandWindow: PropTypes.func, }; export default ExpandOrContractButton;