2018-10-16 06:27:21 +00:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
const propTypes = {
|
|
|
|
isShow: PropTypes.bool.isRequired,
|
2018-10-16 10:19:51 +00:00
|
|
|
onClick: PropTypes.func.isRequired,
|
2018-10-16 06:27:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class MenuControl extends React.Component {
|
2020-11-02 05:56:35 +00:00
|
|
|
|
2018-10-16 06:27:21 +00:00
|
|
|
render() {
|
|
|
|
return (
|
2024-06-28 00:39:44 +00:00
|
|
|
<i className={`sf3-font sf3-font-more-vertical ${this.props.isShow ? '' : 'invisible'}`} onClick={this.props.onClick}></i>
|
2018-10-16 06:27:21 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
MenuControl.propTypes = propTypes;
|
|
|
|
|
2018-11-08 02:36:41 +00:00
|
|
|
export default MenuControl;
|