"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule = true;exports.HintPlayground = void 0;var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));var _react = _interopRequireDefault(require("react"));

var _Gapped = require("../../components/Gapped");
var _Button = require("../../components/Button");
var _Hint = require("../../components/Hint");
var _Toast = require("../../components/Toast");var

HintPlayground = exports.HintPlayground = /*#__PURE__*/function (_React$Component) {function HintPlayground() {var _this;for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {args[_key] = arguments[_key];}_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;_this.













    pushToast = function () {
      _Toast.Toast.push('Текст сообщения');
    };_this.

    pushToastWithAction = function () {
      _Toast.Toast.push('Текст сообщения', { label: 'Ссылка', handler: function handler() {return null;} });
    };return _this;}(0, _inheritsLoose2.default)(HintPlayground, _React$Component);var _proto = HintPlayground.prototype;_proto.render = function render() {return /*#__PURE__*/_react.default.createElement(_Gapped.Gapped, { gap: 10 }, /*#__PURE__*/_react.default.createElement(_Hint.Hint, { manual: true, opened: true, text: 'Показать тост' }, /*#__PURE__*/_react.default.createElement(_Button.Button, { onClick: this.pushToast }, "Toast")), /*#__PURE__*/_react.default.createElement(_Hint.Hint, { manual: true, opened: true, text: 'Показать тост с ссылкой', pos: 'right' }, /*#__PURE__*/_react.default.createElement(_Button.Button, { onClick: this.pushToastWithAction }, "Toast with link")));};return HintPlayground;}(_react.default.Component);