// (C) 2025-2026 GoodData Corporation
import { useMemo } from "react";
import { useIntl } from "react-intl";
import { messages } from "./messages.js";
export function useAutomationsAccessibility(type) {
    const intl = useIntl();
    const accessibilityConfig = useMemo(() => {
        const isAlert = type === "alert";
        return {
            checkboxAllAriaLabel: intl.formatMessage(isAlert ? messages.accessibilitySelectAllAlerts : messages.accessibilitySelectAllSchedules),
            searchAriaLabel: intl.formatMessage(isAlert ? messages.accessibilitySearchAlerts : messages.accessibilitySearchSchedules),
            getCheckboxItemAriaLabel: (automation) => {
                const title = automation.title || automation.id;
                return intl.formatMessage(isAlert ? messages.accessibilitySelectAlert : messages.accessibilitySelectSchedule, { title });
            },
            gridAriaLabel: intl.formatMessage(isAlert ? messages.accessibilityGridLabelAlerts : messages.accessibilityGridLabelSchedules),
        };
    }, [type, intl]);
    return {
        accessibilityConfig,
    };
}
//# sourceMappingURL=useAutomationsAccessibility.js.map