"use client";
import { jsx } from "react/jsx-runtime";
import { useRouter } from "next/navigation";
import { useT } from "@open-mercato/shared/lib/i18n/context";
import { NotificationPanel, useNotifications } from "@open-mercato/ui/backend/notifications";
function NotificationInboxPageClient() {
  const t = useT();
  const router = useRouter();
  const {
    notifications,
    unreadCount,
    markAsRead,
    executeAction,
    dismiss,
    dismissUndo,
    undoDismiss,
    markAllRead
  } = useNotifications();
  return /* @__PURE__ */ jsx(
    NotificationPanel,
    {
      open: true,
      onOpenChange: (open) => {
        if (!open) router.push("/backend");
      },
      notifications,
      unreadCount,
      onMarkAsRead: markAsRead,
      onExecuteAction: executeAction,
      onDismiss: dismiss,
      dismissUndo,
      onUndoDismiss: undoDismiss,
      onMarkAllRead: markAllRead,
      t
    }
  );
}
var NotificationInboxPageClient_default = NotificationInboxPageClient;
export {
  NotificationInboxPageClient,
  NotificationInboxPageClient_default as default
};
//# sourceMappingURL=NotificationInboxPageClient.js.map
