"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
var getStyleForTopLevelComponent_1 = require("../../core/utils/getStyleForTopLevelComponent");
require("../styles/emoji.sass");
require("../styles/emojiDefaults.sass");
var react_router_1 = require("react-router");
exports.ConnectionSuccessNotification = function (_a) {
    var basePath = _a.basePath, className = _a.className;
    var history = react_router_1.useHistory();
    return (react_1.default.createElement("div", { id: "notifications", className: "universal-login-emojis" },
        react_1.default.createElement("div", { className: getStyleForTopLevelComponent_1.getStyleForTopLevelComponent(className) },
            react_1.default.createElement("div", { className: "emoji-success" },
                react_1.default.createElement("p", { className: "emoji-success-text" }, "You successfully authorized a new device."),
                react_1.default.createElement("button", { className: "emoji-success-button", onClick: function () { return history.replace(basePath); } }, "Go to devices")))));
};
//# sourceMappingURL=ConnectionSuccessNotification.js.map