import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
// (C) 2023-2025 GoodData Corporation
import { Input } from "@gooddata/sdk-ui-kit";
import { ConfigurationCategory } from "../../attributeFilter/dashboardDropdownBody/configuration/ConfigurationCategory.js";
export function AttributeTitleRenaming({ categoryTitle, resetTitleText, showResetTitle, attributeTitle, onClick, onChange, }) {
    const buttonClassNames = "gd-button gd-button-link attribute-filter-renaming-title-reset s-attribute-filter-renaming-title-reset";
    return (_jsxs("div", { children: [
            _jsxs("div", { className: "configuration-category-title", children: [
                    _jsx(ConfigurationCategory, { categoryTitle: categoryTitle }), showResetTitle ? (_jsx("a", { className: buttonClassNames, target: "_blank", rel: "noopener noreferrer", onClick: onClick, children: resetTitleText })) : null] }), _jsx(Input, { className: "configuration-attribute-filter-title s-configuration-attribute-filter-title", value: attributeTitle, onChange: onChange, isSmall: true })
        ] }));
}
