"use strict";

var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

var _core = require("@emotion/core");

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var React = _interopRequireWildcard(require("react"));

var _addonKnobs = require("@storybook/addon-knobs");

var _react2 = require("@storybook/react");

var _Link = require("./Link");

var _Root = require("../Root");

(0, _react2.storiesOf)('Link', module).addDecorator(_addonKnobs.withKnobs).add('Link', function () {
  var knobs = {
    type: (0, _addonKnobs.select)('type', ['list', 'top_menu', 'burger'], 'list'),
    size: (0, _addonKnobs.select)('size', ['s', 'm', 'l'], 's'),
    href: (0, _addonKnobs.text)('href', 'https://csssr.com/ru'),
    external: (0, _addonKnobs["boolean"])('external', false),
    isActive: (0, _addonKnobs["boolean"])('isActive', false)
  };
  var children = "\u0421\u0441\u044B\u043B\u043A\u0430 \u0442\u0438\u043F\u0430 \u2014 ".concat(knobs.type, ", \u0440\u0430\u0437\u043C\u0435\u0440\u0430 \u2014 ").concat(knobs.size);
  var cssKnob = (0, _addonKnobs.text)('CSS', 'display: inline-block;');
  return (0, _core.jsx)(_Root.Root, null, (0, _core.jsx)(_Link.Link, (0, _extends2["default"])({}, knobs, {
    css:
    /*#__PURE__*/
    (0, _core.css)(cssKnob, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0xpbmsvTGluay5zdG9yaWVzLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEwQmtCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0xpbmsvTGluay5zdG9yaWVzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAn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JHtjc3NLbm9ifVxuICAgICAgICAgIGB9XG4gICAgICAgICAgY2hpbGRyZW49e2NoaWxkcmVufVxuICAgICAgICAvPlxuICAgICAgPC9Sb290PlxuICAgIClcbiAgfSlcbiJdfQ== */"),
    children: children
  })));
});