mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-18 01:03:40 +00:00
19 lines
384 B
JavaScript
19 lines
384 B
JavaScript
|
import React from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
|
|
||
|
const propTypes = {
|
||
|
isShow: PropTypes.bool.isRequired,
|
||
|
};
|
||
|
|
||
|
class MenuControl extends React.Component {
|
||
|
|
||
|
render() {
|
||
|
return (
|
||
|
<i className={`fas fa-ellipsis-v ${this.props.isShow ? '' : 'hide'}`} onClick={this.props.onClick}></i>
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
MenuControl.propTypes = propTypes;
|
||
|
|
||
|
export default MenuControl;
|