import { MessageObjectDetail, MessageObjectPreview } from "@open-mercato/ui/backend/messages";
const objectMessageTypes = ["default", "messages.defaultWithObjects"];
const messageObjectTypes = [
  {
    module: "currencies",
    entityType: "currency",
    messageTypes: objectMessageTypes,
    entityId: "currencies:currency",
    optionLabelField: "name",
    optionSubtitleField: "code",
    labelKey: "currencies.messageObjects.currency.title",
    icon: "coins",
    PreviewComponent: MessageObjectPreview,
    DetailComponent: MessageObjectDetail,
    actions: [
      {
        id: "view",
        labelKey: "common.view",
        variant: "outline",
        href: "/backend/currencies/{entityId}"
      }
    ],
    loadPreview: async (entityId, ctx) => {
      if (typeof window !== "undefined") {
        return {
          title: "Currency",
          subtitle: entityId,
          metadata: { id: entityId }
        };
      }
      const { loadCurrencyPreview } = await import("./lib/messageObjectPreviews.js");
      return loadCurrencyPreview(entityId, ctx);
    }
  }
];
var message_objects_default = messageObjectTypes;
export {
  message_objects_default as default,
  messageObjectTypes
};
//# sourceMappingURL=message-objects.js.map
