"use strict";

var _react = _interopRequireDefault(require("react"));
var _react2 = require("@storybook/react");
var _index = _interopRequireDefault(require("./index"));
var _storybookState = require("@sambego/storybook-state");
var _i18n = require("../../../../Framework/i18n");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function onPress() {}
var store = new _storybookState.Store({
  note: 'Bitte wie immer produzieren'
});
function handleChange(event) {
  store.set({
    note: event.target.value
  });
}
(0, _react2.storiesOf)('AddToBasket', module).add('with active button', function () {
  return /*#__PURE__*/_react["default"].createElement(_storybookState.State, {
    store: store
  }, function (state) {
    return [/*#__PURE__*/_react["default"].createElement(_index["default"], {
      key: state.note,
      note: state.note,
      noteLabel: (0, _i18n.t)('amountPrice.notice'),
      buttonLabel: (0, _i18n.t)('amountPrice.intoCart'),
      onPress: onPress,
      handleChange: handleChange
    })];
  });
}).add('with disabled button', function () {
  return /*#__PURE__*/_react["default"].createElement(_index["default"], {
    noteLabel: (0, _i18n.t)('amountPrice.notice'),
    note: "",
    buttonLabel: (0, _i18n.t)('amountPrice.intoCart'),
    disabled: true
  });
});