import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { FormattedMessage } from "react-intl";
import { Bubble, BubbleHoverTrigger } from "@gooddata/sdk-ui-kit";
/**
 * @alpha
 */
export function ShareStatusIndicator({ shareStatus, isUnderStrictControl, }) {
    if (shareStatus !== "private") {
        return null;
    }
    const tooltip = isUnderStrictControl ? (_jsx(FormattedMessage, { id: "header.shareStatus.private.strict.tooltip" })) : (_jsx(FormattedMessage, { id: "header.shareStatus.private.not.strict.tooltip" }));
    return (_jsx("div", { className: "s-share-status gd-share-status", children: _jsxs(BubbleHoverTrigger, { children: [
                _jsxs("div", { className: "gd-share-indicator", children: [
                        _jsx("i", { "aria-hidden": "true", className: "gd-share-icon gd-icon-invisible" }), _jsx(FormattedMessage, { id: "header.shareStatus.private.text" })
                    ] }), _jsx(Bubble, { alignPoints: [{ align: "bc tl" }], alignTo: `.gd-share-icon`, children: tooltip })
            ] }) }));
}
//# sourceMappingURL=ShareStatusIndicator.js.map