import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2024-2025 GoodData Corporation
import { defineMessages, useIntl } from "react-intl";
import { bem } from "../bem.js";
const { b } = bem("gd-ui-ext-notifications-list-error-state");
const messages = defineMessages({
    errorLoadingNotifications: {
        id: "notifications.panel.error.loading",
    },
});
/**
 * Default implementation of the NotificationsListErrorState component.
 *
 * @public
 */
export function DefaultNotificationsListErrorState({ error }) {
    const intl = useIntl();
    return (_jsx("div", { className: b(), children: error?.message ?? intl.formatMessage(messages.errorLoadingNotifications) }));
}
//# sourceMappingURL=DefaultNotificationsListErrorState.js.map