'use strict';

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _react3 = require('@storybook/react');

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

var _index = require('./index');

var _index2 = _interopRequireDefault(_index);

var _ContactGroup = require('./ContactGroup.md');

var _ContactGroup2 = _interopRequireDefault(_ContactGroup);

var _HeadingsKnobs = require('../../atoms/headings/Headings.knobs.options');

var _HeadingsKnobs2 = _interopRequireDefault(_HeadingsKnobs);

var _ContactGroupKnobs = require('./ContactGroup.knobs.options');

var _ContactGroupKnobs2 = _interopRequireDefault(_ContactGroupKnobs);

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

(0, _react3.storiesOf)('molecules', module).addDecorator((0, _addonKnobs.withKnobs)({ escapeHTML: false })).add('ContactGroup', function () {
  var props = {
    icon: (0, _addonKnobs.select)('icon', _ContactGroupKnobs2.default.icon, 'SvgPhone'),
    name: (0, _addonKnobs.select)('name', _ContactGroupKnobs2.default.name, 'Phone'),
    level: (0, _addonKnobs.select)('level', _HeadingsKnobs2.default.levels, 2),
    items: [{
      type: (0, _addonKnobs.select)('Item 0: type', _ContactGroupKnobs2.default.itemsType, 'phone', 'Item 0'),
      label: (0, _addonKnobs.text)('Item 0: label', 'Main:', 'Item 0'),
      address: (0, _addonKnobs.text)('Item 0: address', '', 'Item 0'),
      link: {
        href: (0, _addonKnobs.text)('Item 0: link href', '+14134994262', 'Item 0'),
        text: (0, _addonKnobs.text)('Item 0: link text', '(413) 499-4262', 'Item 0'),
        info: (0, _addonKnobs.text)('Item 0: link info', '', 'Item 0')
      },
      details: (0, _addonKnobs.text)('Item 0: details', 'This line is open from 9:00 a.m. - 5:00 p.m., M-F', 'Item 0')
    }, {
      type: (0, _addonKnobs.select)('Item 1: type', _ContactGroupKnobs2.default.itemsType, 'phone', 'Item 1'),
      label: (0, _addonKnobs.text)('Item 1: label', 'Toll Free:', 'Item 1'),
      address: (0, _addonKnobs.text)('Item 1: address', '', 'Item 1'),
      link: {
        href: (0, _addonKnobs.text)('Item 1: link href', '+18004324321', 'Item 1'),
        text: (0, _addonKnobs.text)('Item 1: link text', '(800) 432-4321', 'Item 1'),
        info: (0, _addonKnobs.text)('Item 1: link info', '', 'Item 1')
      },
      details: (0, _addonKnobs.text)('Item 1: details', 'This line is open from 9:00 a.m. - 5:00 p.m., M-F', 'Item 1')
    }]
  };
  return _react2.default.createElement(_index2.default, props);
}, { info: _ContactGroup2.default });