"use strict";

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

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.WithError = exports.Main = void 0;

var _react = _interopRequireDefault(require("react"));

var _EmailSelector = _interopRequireDefault(require("./EmailSelector"));

var _default = {
  component: _EmailSelector.default,
  title: 'EmailSelector'
};
exports.default = _default;

var Main = function Main() {
  return /*#__PURE__*/_react.default.createElement(_EmailSelector.default, {
    defaultSelection: [{
      email: 'david.brent@dundermiflin.com',
      label: 'David Brent'
    }]
  });
};

exports.Main = Main;

var WithError = function WithError() {
  return /*#__PURE__*/_react.default.createElement(_EmailSelector.default, {
    defaultSelection: [{
      email: 'david.brent@dundermiflin.com',
      label: 'David Brent'
    }],
    validator: function validator() {
      return false;
    },
    error: "All labels are invalid here."
  });
};

exports.WithError = WithError;