2019-02-24 15:26:50 +01:00
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
import PropTypes from 'prop-types';
|
2019-03-01 10:55:52 +01:00
|
|
|
import { ExpandableToolMenu } from 'react-viewerbase';
|
|
|
|
|
import './PluginSwitch.css';
|
2019-02-24 15:26:50 +01:00
|
|
|
|
|
|
|
|
class PluginSwitch extends Component {
|
|
|
|
|
static propTypes = {
|
2019-05-29 14:39:54 +02:00
|
|
|
buttons: PropTypes.array,
|
2019-02-24 15:26:50 +01:00
|
|
|
};
|
|
|
|
|
|
2019-03-01 10:55:52 +01:00
|
|
|
static defaultProps = {};
|
2019-02-24 15:26:50 +01:00
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
return (
|
|
|
|
|
<div className="PluginSwitch">
|
2019-06-25 00:04:26 +02:00
|
|
|
<ExpandableToolMenu buttons={this.props.buttons} text={'View'} />
|
2019-02-24 15:26:50 +01:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default PluginSwitch;
|