import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
// (C) 2023-2025 GoodData Corporation
import { useIntl } from "react-intl";
import { messages } from "@gooddata/sdk-ui";
import { EditableLabel } from "@gooddata/sdk-ui-kit";
import { useAttributeHierarchyDialog } from "./AttributeHierarchyDialogProvider.js";
const ATTRIBUTE_HIERARCHY_TITLE_ROW = 1;
export function AttributeHierarchyDialogHeader() {
    const { formatMessage } = useIntl();
    const { title, onUpdateTitle } = useAttributeHierarchyDialog();
    const placeholder = formatMessage(messages["hierarchyUntitled"]);
    return (_jsxs("div", { className: "gd-dialog-header", children: [_jsx("i", { className: "gd-attribute-hierarchy-icon s-gd-attribute-hierarchy-icon" }), _jsx(EditableLabel, { value: title, className: "attribute-hierarchy-title s-attribute-hierarchy-title", maxRows: ATTRIBUTE_HIERARCHY_TITLE_ROW, onSubmit: onUpdateTitle, placeholder: placeholder })] }));
}
//# sourceMappingURL=AttributeHierarchyDialogHeader.js.map