import * as React from "react";
import ChannelBadgeWidget from "./widget.client.js";
const widget = {
  metadata: {
    id: "communication_channels.injection.channel-badge",
    title: "Channel badge",
    description: "Renders a channel-type/provider badge inline in the messages list. Visible whenever a message has an associated MessageChannelLink (= the message was bridged from or to an external channel).",
    features: ["communication_channels.view"],
    priority: 100,
    enabled: true
  },
  columns: [
    {
      id: "communication_channels.channel-badge",
      header: "communication_channels.columns.provider",
      accessorKey: "_channel",
      size: 140,
      cell: ({ getValue }) => {
        const channel = getValue();
        if (!channel) return null;
        return React.createElement(ChannelBadgeWidget, { channel });
      }
    }
  ]
};
var widget_default = widget;
export {
  widget_default as default
};
//# sourceMappingURL=widget.js.map
