import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
// (C) 2025-2026 GoodData Corporation
import { useIntl } from "react-intl";
import { UiIcon } from "../../UiIcon/UiIcon.js";
import { e } from "../asyncTableBem.js";
import { messages } from "../locales.js";
/**
 * @internal
 */
export function UiAsyncTableEmptyState({ title, description, icon = "search", }) {
    const intl = useIntl();
    return (_jsxs("div", { className: e("empty-state"), children: [
            _jsx(UiIcon, { type: icon, color: "currentColor", size: 40 }), _jsx("div", { className: e("empty-state-title"), children: title ?? intl.formatMessage(messages["noMatchFound"]) }), _jsx("div", { className: e("empty-state-description"), children: description ?? intl.formatMessage(messages["tryAdjustingFilters"]) })
        ] }));
}
