'use strict';

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _radium = require('radium');

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

var _addonInfo = require('@storybook/addon-info');

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

var _commentForm = require('./comment-form');

var _grid = require('kitten/components/grid/grid');

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

(0, _react3.storiesOf)('Form/CommentForm', module).addDecorator(_react4.withKnobs).add('default', (0, _addonInfo.withInfo)('common info')(function () {
  return _react2.default.createElement(
    _radium.StyleRoot,
    null,
    _react2.default.createElement(
      _grid.Grid,
      null,
      _react2.default.createElement(
        _grid.GridCol,
        { offset: '1', col: '8' },
        _react2.default.createElement(_commentForm.CommentForm, {
          avatarImgProps: (0, _react4.object)('Src/Alt', {
            src: 'https://placehold.it/80x80/caf4fe/caf4fe',
            alt: ''
          }),
          placeholder: (0, _react4.text)('placeholder', 'Leave a comment on the project'),
          commentButton: (0, _react4.text)('Comment button', 'Comment'),
          error: (0, _react4.boolean)('Is error', false),
          errorMessage: (0, _react4.text)('Error message', 'Cum sociis natoque penatibus et magnis')
        })
      )
    )
  );
}));