import React from 'react';
import PropTypes from 'prop-types';
import { Flexbox, RetinaImg, Switch } from 'mailspring-component-kit';
import PluginsActions from './plugins-actions';
class Package extends React.Component {
static displayName = 'Package';
static propTypes = {
package: PropTypes.object.isRequired,
showVersions: PropTypes.bool,
};
_onDisablePackage = () => {
PluginsActions.disablePackage(this.props.package);
};
_onEnablePackage = () => {
PluginsActions.enablePackage(this.props.package);
};
_onUninstallPackage = () => {
PluginsActions.uninstallPackage(this.props.package);
};
_onUpdatePackage = () => {
PluginsActions.updatePackage(this.props.package);
};
_onInstallPackage = () => {
PluginsActions.installPackage(this.props.package);
};
_onShowPackage = () => {
PluginsActions.showPackage(this.props.package);
};
render() {
const actions = [];
const extras = [];
let icon =