import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
// (C) 2021-2026 GoodData Corporation
import { Button } from "../Button/Button.js";
import { Message } from "../Messages/Message.js";
import { useId } from "../utils/useId.js";
import { Dialog } from "./Dialog.js";
/**
 * @internal
 */
export function CommunityEditionDialog({ headerText, infoText, copyrightText, links, onClose, closeButtonText, }) {
    const titleId = useId();
    return (_jsxs(Dialog, { onClose: onClose, displayCloseButton: true, className: "gd-community-dialog", accessibilityConfig: { titleElementId: titleId }, children: [
            _jsx("h3", { className: "gd-community-dialog-header", id: titleId, children: headerText }), _jsx(Message, { type: "progress", className: "gd-community-dialog-info", children: infoText }), _jsx("div", { className: "gd-community-dialog-copyright", children: copyrightText }), links.length > 0 ? (_jsx("ul", { className: "gd-community-dialog-links", children: links.map((link) => (_jsx("li", { children: _jsx("a", { href: link.uri, target: "_blank", rel: "noreferrer noopener", children: link.text }) }, link.uri))) })) : null, _jsx("div", { className: "gd-dialog-footer", children: _jsx(Button, { className: "gd-community-button gd-button-secondary", onClick: onClose, value: closeButtonText, title: closeButtonText }) })
        ] }));
}
