import { InboxEmailPreview } from "./components/messages/InboxEmailPreview.js";
const messageObjectTypes = [
  {
    module: "inbox_ops",
    entityType: "inbox_email",
    messageTypes: ["inbox_ops.email", "inbox_ops.reply"],
    labelKey: "inbox_ops.title",
    icon: "mail-open",
    PreviewComponent: InboxEmailPreview,
    actions: [
      {
        id: "view",
        labelKey: "inbox_ops.view_in_messages",
        variant: "outline",
        href: "/backend/inbox-ops"
      }
    ],
    loadPreview: async (entityId, ctx) => {
      try {
        if (typeof window !== "undefined") {
          return { title: "Inbox Email", subtitle: entityId };
        }
        const { loadInboxEmailPreview } = await import("./lib/messageObjectPreviews.js");
        return loadInboxEmailPreview(entityId, ctx);
      } catch {
        return { title: "Inbox Email", subtitle: entityId };
      }
    }
  }
];
var message_objects_default = messageObjectTypes;
export {
  message_objects_default as default,
  messageObjectTypes
};
//# sourceMappingURL=message-objects.js.map
