'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _network = require('@vx/network');

var _d3Scale = require('d3-scale');

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

var _jsxFileName = '/Users/hshoff/code/vx/packages/vx-demo/components/tiles/network.js';


var nodes = [{ x: 50, y: 20 }, { x: 200, y: 300 }, { x: 300, y: 40 }];

var dataSample = {
  nodes: nodes,
  links: [{ source: nodes[0], target: nodes[1] }, { source: nodes[1], target: nodes[2] }, { source: nodes[2], target: nodes[0] }]
};

exports.default = function (_ref) {
  var width = _ref.width,
      height = _ref.height;

  if (width < 10) return _react2.default.createElement('div', {
    __source: {
      fileName: _jsxFileName,
      lineNumber: 21
    }
  });
  return _react2.default.createElement('svg', { width: width, height: height, __source: {
      fileName: _jsxFileName,
      lineNumber: 23
    }
  }, _react2.default.createElement('rect', { width: width, height: height, rx: 14, fill: '#272b4d', __source: {
      fileName: _jsxFileName,
      lineNumber: 24
    }
  }), _react2.default.createElement(_network.Graph, { graph: dataSample, __source: {
      fileName: _jsxFileName,
      lineNumber: 25
    }
  }));
};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvdGlsZXMvbmV0d29yay5qcyJdLCJuYW1lcyI6WyJSZWFjdCIsIkdyYXBoIiwic2NhbGVPcmRpbmFsIiwic2NoZW1lQ2F0ZWdvcnkyMGMiLCJub2RlcyIsIngiLCJ5IiwiZGF0YVNhbXBsZSIsImxpbmtzIiwic291cmNlIiwidGFyZ2V0Iiwid2lkdGgiLCJoZWlnaHQiXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLEFBQU87Ozs7QUFDUCxBQUFTOztBQUNULEFBQVMsQUFBYzs7Ozs7OztBQUV2QixJQUFNLFFBQVEsQ0FDWixFQUFFLEdBQUYsQUFBSyxJQUFJLEdBREcsQUFDWixBQUFZLE1BQ1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