"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _react = _interopRequireDefault(require("react"));

var _components = require("@patternplate/components");

var _toggleButton = _interopRequireDefault(require("./common/toggle-button"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var _default = ToggleNetwork;
exports.default = _default;

function ToggleNetwork(props) {
  return _react.default.createElement(StyledToggleButton, {
    enabled: props.enabled,
    shortcut: props.shortcut
  }, _react.default.createElement(StyledIcon, {
    symbol: "dependencies"
  }), " ", props.shortcut.toString());
}

const StyledIcon = (0, _components.styled)(_components.Icon).withConfig({
  displayName: "toggle-network__StyledIcon"
})(["fill:", ";"], props => props.theme.color);
const StyledToggleButton = (0, _components.styled)(_toggleButton.default).withConfig({
  displayName: "toggle-network__StyledToggleButton"
})(["font-size:0;line-height:0;"]);
//# sourceMappingURL=toggle-network.js.map