import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2025-2026 GoodData Corporation
import { useIntl } from "react-intl";
import { Input } from "@gooddata/sdk-ui-kit";
import { getDescription } from "../../../../alerting/DefaultAlertingDialog/utils/getters.js";
export function AlertTitle({ id, alert, measures, separators, onChange }) {
    const intl = useIntl();
    const description = getDescription(intl, measures, alert, separators);
    return (_jsx(Input, { id: id, isSmall: true, type: "string", className: "gd-edit-alert__title-input title-input", value: alert?.title, placeholder: description, onChange: onChange, accessibilityConfig: {
            ariaLabel: intl.formatMessage({ id: "insightAlert.config.accessibility.title" }),
        } }));
}
//# sourceMappingURL=AlertTitle.js.map