import React from "react";
import { Icon } from "@netdata/netdata-ui";
import { toast } from "react-toastify";
import { createUINotification } from "../ui-notification";
import * as S from "./styled";
export const toastOptions = {
    position: toast.POSITION.BOTTOM_RIGHT,
    autoClose: 10000,
    pauseOnFocusLoss: false,
};
export const showCloudInstallationProblemNotification = () => {
    const uiNotification = {
        header: "Installation error",
        text: "The installer could not prepare the required dependencies to enable Netdata Cloud"
            + " functionality",
    };
    const notificationComponent = createUINotification({
        ...uiNotification,
        success: false,
        leftContent: (React.createElement(S.NodeIconContainer, null,
            React.createElement(Icon, { name: "gear", size: "large" }))),
    });
    toast.error(notificationComponent, toastOptions);
};
export const showCloudConnectionProblemNotification = () => {
    const uiNotification = {
        header: "Connection Problem",
        text: (React.createElement(S.NotificationLink, { href: "https://learn.netdata.cloud/docs/agent/packaging/installer#automatic-one-line-installation-script", target: "_blank" }, "To access Cloud install again your agent via the kickstart script")),
    };
    const notificationComponent = createUINotification({
        ...uiNotification,
        success: false,
        leftContent: (React.createElement(S.NodeIconContainer, null,
            React.createElement(Icon, { name: "gear", size: "large" }))),
    });
    toast.error(notificationComponent, toastOptions);
};
//# sourceMappingURL=notifications.js.map