/*
 * Copyright 2022 The Kubernetes Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import React from 'react';
import { i18n } from '@kui-shell/core';
import Icons from '../../spi/Icons';
import TextWithIconWidget from './TextWithIconWidget';
export default class MadeWithKui extends React.PureComponent {
    constructor() {
        super(...arguments);
        this.popover = {
            bodyContent: MadeWithKui.popoverBody(),
            headerContent: MadeWithKui.popoverHeader()
        };
    }
    static popoverBody() {
        return React.createElement("div", { className: "not-very-wide pre-wrap" }, MadeWithKui.strings('kui.hello'));
    }
    static popoverHeader() {
        return (React.createElement(React.Fragment, null,
            React.createElement("div", null, this.strings('Made with Kui')),
            React.createElement("div", null,
                React.createElement("strong", null, "CLIs with a graphical twist")),
            React.createElement("div", { className: "sub-text even-smaller-text" },
                React.createElement("a", { href: "https://github.com/kubernetes-sigs/kui" },
                    React.createElement(Icons, { icon: "Github", className: "somewhat-larger-text small-right-pad" }),
                    MadeWithKui.strings('Visit Kui on Github')))));
    }
    render() {
        return React.createElement(TextWithIconWidget, { text: "Made with Kui", viewLevel: "normal", popover: this.popover, position: "top-end" });
    }
}
MadeWithKui.strings = i18n('plugin-client-common');
//# sourceMappingURL=MadeWithKui.js.map