ypes.func.isRequired,
      isScanning: PropTypes.bool.isRequired,
    };
  }

  refreshDevices() {
    this.props.dispatch(Actions.scanUSBRuntimes());
  }

  render() {
    return Localized(
      { id: "about-debugging-refresh-usb-devices-button" },
      dom.button(
        {
          className: "default-button qa-refresh-devices-button",
          disabled: this.props.isScanning,
          onClick: () => this.refreshDevices(),
        },
        "Refresh devices"
      )
    );
  }
}

module.exports = RefreshDevicesButton;
PK