import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2023-2025 GoodData Corporation
import { Button, withBubble } from "@gooddata/sdk-ui-kit";
const alignPoints = [{ align: "bc tc" }];
function Link({ deleteLinkText, onOpenDeleteDialog, isDeleteLinkEnabled }) {
    return isDeleteLinkEnabled ? (_jsx(Button, { className: "gd-button gd-button-link-dimmed gd-user-management-dialog-button-underlined s-user-management-delete-link", value: deleteLinkText, onClick: onOpenDeleteDialog })) : (_jsx("span", { className: "gd-button-link-dimmed-disabled", children: deleteLinkText }));
}
const DisabledLinKWithBubble = withBubble(Link);
export function DeleteLink(props) {
    const { isDeleteLinkEnabled, disabledLinkTooltipTextId } = props;
    return (_jsx("div", { children: isDeleteLinkEnabled ? (_jsx(Link, { ...props })) : (_jsx(DisabledLinKWithBubble, { ...props, showBubble: true, bubbleTextId: disabledLinkTooltipTextId, alignPoints: alignPoints })) }));
}
//# sourceMappingURL=DeleteLink.js.map