# All files / src plugin.js

87.27% Statements 48/55
59.46% Branches 22/37
100% Functions 12/12
91.43% Lines 32/35

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25

    1x

    1x

    1x

    1x

    1x

    1x

    1x

    1x

    1x

    1x

    3x
     import React, { Component } from 'react';
    import { StoreConnector } from 'hadron-react-components';
    import SshTunnelStatus from 'components/ssh-tunnel-status';
    import store from 'stores';

    class Plugin extends Component {
      static displayName = 'SshTunnelStatusPlugin';
    IEE
      /**
       * Connect the Plugin to the store and render.
       *
       * @returns {React.Component} The rendered component.
       */
      render() {
        return (
          <StoreConnector store={store}>
            <SshTunnelStatus {...this.props} />
          </StoreConnector>
        );
      }
    }

    export default Plugin;
    export { Plugin };