import React from 'react';
import {Flexbox, RetinaImg, Switch} from 'nylas-component-kit';
import PluginsActions from './plugins-actions';
class Package extends React.Component {
static displayName = 'Package';
static propTypes = {
package: React.PropTypes.object.isRequired,
}
constructor() {
super();
}
_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 = (