import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2025 GoodData Corporation
import { useIntl } from "react-intl";
import { UiAsyncTableEmptyState } from "@gooddata/sdk-ui-kit";
import { messages } from "./messages.js";
export function AutomationsEmptyState({ type, isFiltersOrSearchActive }) {
    const intl = useIntl();
    if (isFiltersOrSearchActive) {
        return _jsx(UiAsyncTableEmptyState, {});
    }
    const emptyStateProps = type === "schedule"
        ? {
            title: intl.formatMessage(messages.emptyStateScheduleTitle),
            description: intl.formatMessage(messages.emptyStateScheduleDescription),
            icon: "clock",
        }
        : {
            title: intl.formatMessage(messages.emptyStateAlertTitle),
            description: intl.formatMessage(messages.emptyStateAlertDescription),
            icon: "alert",
        };
    return _jsx(UiAsyncTableEmptyState, { ...emptyStateProps });
}
//# sourceMappingURL=AutomationsEmptyState.js.map